API429 / API reference

API429 client contract

The rules API429 clients can rely on: canonical model names, pricing, the signals of a completed stream and the limits of OpenAI compatibility.

Reference version 3.31.0 · revised · the same text in the client portal

  • gpt-6.1-terra is the canonical model. The legacy chatgpt-gpt-6.1-terra remains a compatibility alias with the same allowlist and billing resolution, not a second catalog model. Fallback depends on request capabilities; it does not promise portable provider-owned conversation state.
  • For ChatGPT Web, use exact IDs available to your token, such as chatgpt-gpt-6.1-sol, chatgpt-gpt-6-sol, chatgpt-gpt-6-astra. Listing an ID does not guarantee every feature or current provider capacity. chatgpt-gpt-5.6-terra is not a substitute for canonical Terra.
  • Pricing: base-rate tables are different from standard retail and personal prices. The public catalog is the source for current API429 standard rates. Your price follows the active base rate and your account's discount terms; do not apply a discount again to an already discounted standard rate. Check the dashboard for actual charges. A rate does not establish model capabilities.
  • Streaming: HTTP 200 and [DONE] are transport signals, not proof of success. Responses requires response.completed with status completed; response.failed, response.incomplete, error, or EOF before completion means an incomplete answer. For Chat, inspect errors and finish_reason, including chunks with no choices. Examples below handle one completion choice. tool_calls completes a model turn, not the task: assemble arguments, execute approved functions, and send their results in the next request. Preserve partial output; do not blindly retry an already started generation.
  • Nano Banana: gemini-3.1-flash-image, nano-banana-2 and nano-banana are compatibility names for the current 2.1 route, not a guarantee of historical upstream identity. Use gemini-nano-banana-2.1 for new integrations and check the rate for the requested ID.
  • Compatibility: the documented endpoints and SDK shapes are supported, not every OpenAI platform feature. Send complete history; provider-owned response/conversation IDs are not freely portable. Tools, strict JSON and multimodal inputs require a compatible route.

Quickstart: the first request · Models and prices · Get an API key

Telegram