POST/api/v1/imagine2 creditsSynchronous

GPT-Image-1

Provider · OpenAIType · T2I / EditModel ID · gpt-image-1Upstream ID · gpt-image-1

OpenAI GPT-Image-1 (official API). Multi-image input and mask-based editing are both supported. Strong instruction following with good text rendering. Most affordable OpenAI option.

Request Parameters

ParameterTypeRequiredDescription
promptstringRequiredThe text prompt describing the image to generate.
modelstringOptionalSet to `gpt-image-1` to use this model.Default: gpt-image-1
image_urlstringOptionalReference image URL for image-to-image generation. Optional — omit for pure text-to-image.
aspect_ratiostringOptionalOutput aspect ratio. Allowed: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3.Default: 1:1
webhook_urlstringOptionalURL where we POST the completed task result.
webhook_secretstringOptionalSent as x-webhook-secret header in webhook delivery for verification.

Example Request

cURL
curl -X POST https://api.journeyapi.com/api/v1/imagine \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "a minimalist product photo of a white ceramic mug on a marble surface",
    "aspect_ratio": "1:1"
  }'

Response

This model is synchronous — the response includes the finished image_url directly. No polling required.

200 OK
{
  "task_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "finished",
  "image_url": "https://cdn.example.com/output.png"
}

Tips

  • 1Provide `image_url` to use edit mode — the model modifies the source image based on your prompt.
  • 2Good at rendering legible text in images (signs, labels, etc.).