Agent / MCP integration
Use Jiufeng from agents, code-gen tools and existing HTTP clients; MCP coming soon.
Jiufeng Open API offers three paths for agents and automation.
1. Plain HTTP (recommended)
The API is three JSON endpoints with a Bearer key, so any HTTP client works — see the Python and JavaScript examples in Generate images and Generate videos.
It is not a drop-in replacement for the OpenAI SDK. The auth header and JSON style look familiar, but generation is asynchronous: /v1/images/generations returns a task_id instead of OpenAI's data[].url, and the image lives in data.result.images[0].url of Query tasks. Calling client.images.generate() from the openai SDK will not give you an image. If you already use the SDK's HTTP layer, send raw requests (e.g. client.post(...)) and parse the response yourself.
2. Machine-readable specs (llms.txt / OpenAPI)
Feed machine-readable specs to agents and code-gen tools so they can understand the endpoints and fields automatically:
- llms.txt — an LLM-oriented site summary (product blurb + base URL + auth + endpoint list + links to each doc page) to give agents quick context on Jiufeng Open API.
- OpenAPI spec — the complete endpoint and request/response schema (
openapi.yaml, kept in sync as the API evolves).
Both are downloadable from the site root: https://docs.jiufeng.ai/llms.txt and https://docs.jiufeng.ai/openapi.yaml.
3. MCP Server (coming soon)
The official jiufeng-mcp will wrap image generation and task queries as Model Context Protocol tools, letting MCP-capable agents (Claude, various IDE agents) call Jiufeng generation directly without hand-writing HTTP.
The MCP Server is currently planned / coming soon. Once it ships, this page will list the official server name, installation, and tool inventory. Until then, call the HTTP endpoints directly.