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.
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 |