Documentation Index
Fetch the complete documentation index at: https://docs.oxen.ai/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | yes | — | Image editing model (e.g. qwen-image-edit, nano-banana-2-edit, xai-grok-imagine-image-edit) |
prompt | string | yes | — | Description of the edit to apply. |
input_image | string/array | yes | — | URL(s) of the image to edit. Some models accept an array; see per-model reference. |
response_format | string | no | "url" | "url" returns a hosted URL. "b64_json" returns base64-encoded image bytes inline. |
target_namespace | string | no | current user | Namespace to save results and bill to. Can be an organization name. |
Examples
Basic edit
Multi-image input
Some models accept an array of URLs ininput_image. Consult the per-model reference for how each model uses them:
Response
Same format as/ai/images/generate:
Errors
| Condition | Error |
|---|---|
| Image URL not accessible | "... 403 Client Error: Forbidden for url: ..." |
| Model not found | "Model not found: <name>" |
input_image URL must be publicly downloadable. URLs that require authentication or block automated access will fail. Data URIs (data:image/...;base64,...) work as an alternative but aren’t recommended for production.