POST/api/v1/imagine2 creditsSynchronous

Nano Banana

Provider · GoogleType · T2IModel ID · nano-bananaUpstream ID · nano-banana

Google Gemini 2.5 Flash Image base model. Fast and affordable text-to-image generation. Supports multiple reference images via the image array field. Good general-purpose option at a low credit cost.

Request Parameters

ParameterTypeRequiredDescription
promptstringRequiredThe text prompt describing the image to generate.
modelstringOptionalSet to `nano-banana` to use this model.Default: nano-banana
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": "nano-banana",
    "prompt": "a golden retriever on a beach at sunset",
    "aspect_ratio": "16:9"
  }'

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

  • 1Pass up to several reference images in the `image` array to guide style or composition.