Back to Models

GPT Image 2 beta APIActive

gpt-image-2-beta

No description available

By:图片生成Input Type:Output Type:Publish time:-

AI Code With channel availability

The same model is billed by channel discount. Copy a channel code to set your preference.

ChannelCache Hit RateContext
OpenAI 图片 API 渠道
88.0%¥0.288/ M tokens¥0.288/ M tokensRead:¥-/ M tokensWrite:¥-/ M tokens200K0.0s

Related Models

More models from 图片生成

GPT Image 2 beta API: price, model ID, and how to call it

Call GPT Image 2 beta through AI Code With. Use model ID gpt-image-2-beta with 200K context. list price about $0.0400 / $0.0400 per 1M tokens before channel discounts.

Model IDgpt-image-2-beta
ProtocolsOpenAI Chat Completions
Context200K
Max output65.54K

Next: Get API key · Image model setup · All model prices · All model prices

cURL example

Set model to gpt-image-2-beta. The page slug is only the URL, not the API parameter.

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "gpt-image-2-beta",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the GPT Image 2 beta model ID?

Send model "gpt-image-2-beta" in the API request. The page path /gpt-image-2-beta is only the URL, not the model parameter.

How do I call the GPT Image 2 beta API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to gpt-image-2-beta. Supported protocols: OpenAI Chat Completions. See Image model setup.

How is GPT Image 2 beta priced?

GPT Image 2 beta is list price about $0.0400 / $0.0400 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel.

How long is the GPT Image 2 beta context window?

GPT Image 2 beta has about 200K input context and up to 65.54K output tokens. Treat that as capacity, not a reason to fill every request.