Alla modellerimageGPT Image 2

GPT Image 2

av OpenAI

Testa på Kunya
image

GPT Image 2

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

Modell-ID:gpt-image-2

API-dokumentation

Generate images with this model.

POST/api/v1/images/generations
GET /api/v1/models?type=image
Request body
{
  "model": "gpt-image-2",
  "prompt": "A serene mountain landscape at golden hour",
  "size": "1024x1024",
  "n": 1,
  "reference_image": "https://example.com/reference.jpg"
}
cURL-exempel
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"}'

Anteckningar

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

Priser

Indata$10.4 per 1M tokens
Utdata$39 per 1M tokens
Kostnad$0.0689 per bild

Funktioner

Streaming Nej
Vision Nej
Resonemang Nej
Verktyg Nej
LeverantörOpenAI
Testa på Kunya

Liknande modeller

Kunya V1 Image

Kunya

Intelligently routed image generation — Z-Image Turbo for simple prompts, GPT Image 2.5 Flare for edits, Sunburst for high detail, Seedream for anime/stylized. Picks the best model per request.

API-dokumentation

GPT Image 2.5 Sunburst

OpenAI

Most capable OpenAI image model — premium quality and precise edits for production creative work

API-dokumentation

FLUX.3 Image Klein

Black Forest Labs

Open-weights FLUX.3 Klein — fast generation & multi-ref editing, 768–4K tiers, up to 10 refs

API-dokumentation

Stable Diffusion 3.5 Large

FAL AI (Stability AI)

SD 3.5 with improved quality, typography, and prompt understanding

API-dokumentation