Wszystkie modeleimageGPT Image 2

GPT Image 2

od OpenAI

Wypróbuj na Kunya
image

GPT Image 2

Prior OpenAI image generation — flexible sizes; Batch API 50% discount still available

ID modelu:gpt-image-2

Dokumentacja API

Generate images with this model.

POST/api/v1/images/generations
GET /api/v1/models?type=image
Treść żądania
{
  "model": "gpt-image-2",
  "prompt": "A serene mountain landscape at golden hour",
  "size": "1024x1024",
  "n": 1,
  "reference_image": "https://example.com/reference.jpg"
}
Przykład cURL
curl -X POST https://kunya.ai/api/v1/images/generations \
  -H "Authorization: Bearer kunya_YOUR_API_KEY" \
  -H "Content-Type: application/json"
  -d '{"model":"gpt-image-2","prompt":"A serene mountain landscape at golden hour","size":"1024x1024","n":1,"reference_image":"https://example.com/reference.jpg"}'

Uwagi

  • •Returns a URL to the generated image in the response.
  • •Pass `reference_image` or `reference_images` for image-to-image editing.

Ceny

Wejście$10.4 za 1M tokenów
Wyjście$39 za 1M tokenów
Koszt$0.0689 za obraz

Możliwości

Streaming Nie
Wizja Nie
Rozumowanie Nie
Narzędzia Nie
DostawcaOpenAI
Wypróbuj na Kunya

Podobne modele

DALL·E 3

OpenAI

Legacy OpenAI image generation — superseded by GPT Image 2

Dokumentacja API

GPT Image 1

OpenAI

Prior GPT Image generation — superseded by GPT Image 2

Dokumentacja API

Seedream 4.5

ByteDance

Prior Seedream generation — superseded by Seedream 5.0 Lite

Dokumentacja API

Qwen Image 2512

FAL AI (Qwen)

Legacy FAL Qwen path — use DashScope Qwen Image Max instead

Dokumentacja API