POST/api/v1/imagine6 creditsSynchronousRequires image_url

Ideogram v3 Edit

Provider · IdeogramType · EditModel ID · ideogram-v3-editUpstream ID · ideogram-edit-v3

Ideogram v3 Edit. Mask-based inpainting — white areas in the mask are edited, black areas are preserved. Requires both `image_url` (source) and a mask. Precise control over which parts of the image change.

Request Parameters

ParameterTypeRequiredDescription
promptstringRequiredThe text prompt describing the image to generate.
modelstringOptionalSet to `ideogram-v3-edit` to use this model.Default: ideogram-v3-edit
image_urlstringRequiredSource image URL. Required for this edit model — the request will fail without it.
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": "ideogram-v3-edit",
    "prompt": "a wooden table with a vase of sunflowers",
    "image_url": "https://example.com/room.jpg"
  }'

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

  • 1White pixels in the mask = will be regenerated. Black pixels = preserved.
  • 2Keep mask edges soft for more natural blending.

Quirks & Gotchas

Requires image_url — will fail without a source image.

Mask must be the same dimensions as the source image.