generate_image
Create AI images from text prompts with selectable models. Poll processing status or receive webhook callbacks; credits are auto-refunded on failure.
Instructions
Generate gambar. Response bisa status "completed" (langsung ada image_url) atau "processing" (poll dengan get_generation_status). Kredit dipotong di awal, refund otomatis bila gagal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID model (lihat tool list_models / get_models_pricing untuk daftar model_id dan input_schema parameternya) | |
| parameters | No | Parameter sesuai input_schema model, mis. { prompt, aspect_ratio }. File input bisa berupa URL http(s), data URI base64, atau path /api/tmp/... | |
| webhook_url | No | URL webhook opsional yang dipanggil saat status completed/failed |