Introduction
Jiufeng Open API — an OpenAI-compatible, asynchronous image generation gateway.
Jiufeng Open API lets you tap into Jiufeng's image generation with a single API key. The interface follows the OpenAI-compatible style, but generation is asynchronous:
- Submit a generation task → get a
task_idimmediately - Poll the task status (or use a webhook) → fetch the result image URL once it completes
This site documents the real contract of the api.jiufeng.ai/v1/* gateway. Endpoints, field names, and status enums here are authoritative.
Base URL
Authentication
Send your key (prefixed sk-jf-live-) as a Bearer token:
See Authentication.
Endpoints
| Method | Path | Group | Description |
|---|---|---|---|
POST | /v1/images/generations | Model APIs | Submit a generation task (async, returns task_id) |
GET | /v1/tasks/{task_id} | Platform APIs | Query a single task's status / result |
POST | /v1/tasks/batch | Platform APIs | Query multiple tasks at once |
POST | <webhook>/callback | Model APIs | Terminal-state callback (optional; pushed by the platform) |
Async workflow
Next steps
- Quickstart — generate your first image in five minutes
- Authentication — create and use API keys
- Generate images — request parameters in detail
- Query tasks — polling for results the right way
- Webhook callbacks — terminal-state push + signature verification
- Agent / MCP integration — connect OpenAI-compatible clients
- Errors