Skip to main content
Triw relays image models through the OpenAI images API, so the same client code that works with OpenAI works here.

Generate an image

Response follows OpenAI: base64 (default for gpt-image-*) or a hosted URL, depending on the model and the response_format you pass.

Edit an image

/v1/images/variations is not implemented by the upstream providers Triw relays; expect a not-implemented response.

Available image models

Ask the gateway, not the docs — availability is per group:
Common identifiers include gpt-image-1, dall-e-3, dall-e-2, and flux-* families when those channels are connected.

Parameters that matter

Practical notes

  • Image calls are slow (10–60s). Set client timeouts above 120s; do not retry on timeout without de-duplicating, or you may pay twice.
  • Prompts are forwarded verbatim. Provider-side moderation applies — a rejected prompt returns invalid_request_error with the provider’s reason.
  • Billing is per image (plus tokens for gpt-image-* revisions), so check the price for the specific model before generating batches.