Generate images
Generate one or more images from a text prompt.
Two output modes are available:
output_type: "data_url"(default) — Returns JSON with base64-encoded data URLs. Supports multiple images (n >= 1).output_type: "file"— Returns the raw binary file directly. Only supports a single output (n = 1).
Authorization
SIWx Base64-encoded JSON envelope containing a CAIP-122 sign-in message and its cryptographic signature.
{
"message": "<CAIP-122 message>",
"signature": "<base58 for Solana, hex for EVM>"
}In: header
Request Body
application/json
Canonical model slug (e.g. dall-e-3, flux-pro).
Text prompt describing the desired image.
Things to avoid in the generated image.
Number of images to generate (1–10).
11 <= value <= 10Output image width in pixels (e.g. "1024").
Output image height in pixels (e.g. "1024").
Aspect ratio hint (e.g. 16:9, 1:1).
Free-form style hint.
Quality level: low, medium, high, or auto.
"low" | "medium" | "high" | "auto"Output format: png, jpeg, or webp. Defaults to png.
"png" | "jpeg" | "webp"data_url for JSON response with base64 images, file for raw binary (single image only).
"data_url" | "file"-1 for nondeterministic; 0–2147483647 for reproducible results.
Guidance scale (0.0–50.0).
Whether to stream intermediate results.
Number of inference steps.
Image style preset (e.g. 3D Model, Anime).
Resolution tier (e.g. 1K, 2K, 4K).
Whether to hide the watermark.
LoRA strength (0–100).
Whether to blur adult content.
Whether to embed the prompt in EXIF metadata.
Whether to enable web search during generation.
End-user identifier for auditing.
Free-form metadata (max ~4 KB).
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://beta.aimo.network/api/v1/image/generate" \ -H "Content-Type: application/json" \ -d '{ "model": "dall-e-3", "prompt": "string" }'{
"id": "req-abc123",
"created": 0,
"status": "completed",
"images": [
{
"index": 0,
"data_url": "string",
"width": 0,
"height": 0,
"format": "string",
"seed": 0
}
],
"error": {
"error": {
"code": "string",
"message": "string"
}
},
"provider_metadata": {
"provider": "string",
"raw": {}
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}