POST/api/v1/imagine4 creditsSynchronousRequires image_url

Qwen Image Edit

Provider · AlibabaType · EditModel ID · qwen-image-editUpstream ID · qwen-image-edit

Qwen Image Edit by Alibaba. Specializes in precise in-image text editing — replacing signs, labels, or any text visible in a photo. Also supports general image editing. Requires `image_url`.

Request Parameters

ParameterTypeRequiredDescription
promptstringRequiredThe text prompt describing the image to generate.
modelstringOptionalSet to `qwen-image-edit` to use this model.Default: qwen-image-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": "qwen-image-edit",
    "prompt": "change the store sign text to read OPEN 24 HOURS",
    "image_url": "https://example.com/storefront.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

  • 1Best-in-class for editing visible text inside images (signs, product labels, posters).
  • 2Describe both what to remove and what to replace it with for best results.

Quirks & Gotchas

Requires image_url — will fail without a source image.