tbuy

gpt-image-2 API pricing & access

gpt-image-2 API pricing: $8 per 1M tokens. GPT Image 2 API for image generation, reference-image editing and product visuals.

gpt-image-2 API access

GPT Image 2 API for image generation, reference-image editing and product visuals.

Compare supported API endpoints and capabilities, then access gpt-image-2 through the unified API gateway.

Category
image
Supported APIs
Image Generation API, OpenAI Image Edit API, OpenAI Chat Completions API
API endpoints
POST /v1/images/generations, POST /v1/images/edits, POST /v1/chat/completions
Input modalities
text, image
Output modalities
image

gpt-image-2 API pricing

Base input price
$8 per 1M tokens
Base output price
$30 per 1M tokens

Base prices are shown in USD before group-specific adjustments. Open the live pricing page for current access-group prices.

About gpt-image-2

GPT Image 2 generates and edits images from text and image inputs. The official model supports flexible image sizes and high-fidelity image inputs.

Evaluate product illustrations, posters, and reference-image editing. Accepted sizes, quality options, response formats, and billing depend on the endpoint and provider configured on this page.

Official model reference, checked 2026-10-11.

API pricing and model selection

Review the prices and endpoints on this page. Check your account discounts, quota and actual usage after signing in, then evaluate the selected endpoint on a small sample.

Compare models in this category ยท API integration documentation.

Use cases and prompting

Fix the composition before refining details

Describe the subject, purpose, layout, background, and elements to preserve. For reference-image edits, specify which parts may change.

Validate sizes and response formats with a small sample, then change one prompt variable at a time. Check lettering, subject consistency, and downloaded results. Confirm the original request's outcome before retrying a failure.

A task to evaluate

Create a product visual with a white ceramic cup on a light background. Place the cup on the left and reserve space for a headline on the right. Add no logos or text.

Compare the output with your acceptance criteria. Record the model, endpoint, input size, elapsed time and actual usage; change one condition at a time.

How to call gpt-image-2

gpt-image-2 is served through tbuy's unified gateway. Existing OpenAI or Anthropic SDK code keeps working: point base_url at https://modelsok.com and use your tbuy API key.

curl (OpenAI-compatible)

curl https://modelsok.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-image-2", "messages": [{"role": "user", "content": "Hello"}]}'

Python (openai SDK)

from openai import OpenAI

client = OpenAI(base_url="https://modelsok.com/v1", api_key="YOUR_API_KEY")
response = client.chat.completions.create(
    model="gpt-image-2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Frequently asked questions about gpt-image-2

What is gpt-image-2?

GPT Image 2 API for image generation, reference-image editing and product visuals.

How do I call gpt-image-2?

Create an API key with access to gpt-image-2, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gpt-image-2 priced?

Pricing depends on the selected provider group and the model billing unit. Refer to the current input, output, request, or media prices in the pricing section.

How should I evaluate gpt-image-2 for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.

Back to AI model API pricing