Get started with HiveAPI
Make your first API request with a coding agent or manually. Both paths lead to a complete, production-safe integration.
Need a browser-based AI video and creative workflow studio without writing API code? Explore Wodex.ai Studio.
Pick a path. The coding-agent path is fastest; the manual path shows the same request lifecycle without an agent.
Use a coding agent
1. Install the HiveAPI Skill
Just one file, served directly from this site. No account and no installer needed:
curl -fsSL --create-dirs -o ~/.agents/skills/hiveapi/SKILL.md https://hiveapi.dev/skills/hiveapi/SKILL.md
If your agent reads its own skills directory instead of ~/.agents/skills, just save the same URL to the corresponding path (Claude Code:~/.claude/skills/hiveapi/SKILL.md).
This Skill provides HiveAPI integration rules and an acceptance checklist for Claude Code, Codex, Cursor and other compatible agents.
Prefer live docs over installing the Skill? Connect the read-only Docs MCP server:
claude mcp add --transport http hiveapi-docs https://hiveapi.dev/mcp
Use the Skill or MCP, not both at once. Agents that support neither can read llms-full.txt.
2. Paste a focused prompt
Replace the feature description, then hand this prompt to your coding agent:
Use the installed HiveAPI skill to integrate HiveAPI into this project.
Build this feature: [describe the HiveAPI-powered feature].
Inspect the repository before editing. Keep HIVEAPI_KEY server-side, handle the
asynchronous task lifecycle, persist any output the product must retain, add
focused tests, and report the exact manual smoke test when finished.
Never paste the API key into the conversation. Just tell the agent the server-side environment variable is named HIVEAPI_KEY; set its value in your deployment platform or an untracked local environment file.
3. Verify the integration
Accept the implementation only when:
- Call HiveAPI from trusted server-side code;
- Persist the returned task
id; - Stop at
succeeded,failedorcancelled, with a client-side timeout; - You can retry submissions without creating duplicate tasks;
- On API errors, keep
request_id; - Copy expiring outputs to your app's own storage when needed;
- Use mock responses instead of paid API calls in automated tests.
Make your first request manually
1. Create an API key
Open Dashboard → API keys, create a key, and store the one-time value in your server-side environment:
export HIVEAPI_KEY="hk_live_..."
Never commit the key or expose it to browser code. All requests use https://api.hiveapi.dev.
2. Submit an image task
Use the typed endpoint for your chosen model. Assign a stable idempotency key to each business operation and reuse it if a submission needs to be retried.
curl -X POST https://api.hiveapi.dev/v1/z-image-spicy \
-H "Authorization: Bearer $HIVEAPI_KEY" \
-H "Idempotency-Key: first-image-your-request-id" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a low-poly fox in a snowy forest, golden hour",
"width": 1024,
"height": 576
}'
New tasks return 202 Accepted. Before waiting, save its id:
{
"id": "task_8sd9f7aQ2",
"status": "queued",
"model": "z-image-spicy"
}
3. Retrieve the result
Poll saved tasks with a client-side timeout:
curl https://api.hiveapi.dev/v1/tasks/task_8sd9f7aQ2 \
-H "Authorization: Bearer $HIVEAPI_KEY"
Continue while the status is non-terminal. Stop at succeeded, failed or cancelled . Successful tasks include their assets and expiry time:
{
"id": "task_8sd9f7aQ2",
"status": "succeeded",
"output": {
"assets": [{ "url": "https://cdn.hiveapi.dev/..." }]
},
"expires_at": 1734104807
}
Stop at expires_at before then, copy any files the product must keep to storage you control.
Typed endpoints
One typed endpoint per model; after submission, all tasks go through /v1/tasks/{id} 跟踪.Price为本站美元价:Seedance / Seedream 系列官网价 20% off,Chat 30% off.
| Models | Endpoints | Mode | Price |
|---|---|---|---|
| Seedance 2.5 | /v1/seedance-2.5-spicy | Text / image / reference / video to video | from $0.08/sec |
| Seedance 2.5 Flash | /v1/seedance-2.5-flash-spicy | Text / image / reference / video to video | $0.048/sec |
| Seedance 2.0 | /v1/seedance-2.0-spicy | Text / image / reference to video | $0.112/sec |
| Seedance 2.0 Mini | /v1/seedance-2.0-mini-spicy | Text / image / reference to video | $0.064/sec |
| Wan 3.0 | /v1/w3.0-spicy | Text / image / reference to video | $0.08/sec |
| Berry 1.0 | /v1/berry-1.0-spicy | Text / image / reference to video | $0.075/sec |
| MiniMax H3 | /v1/minimax-h3-spicy | Video + native audio | from $0.02/sec |
| Video Enhancer | /v1/video-enhancer-spicy | 1080p / 2K / 4K upscaling | from $0.07/sec |
| Seedream 5.0 Pro | /v1/seedream-5.0-pro-spicy | Text-to-image / image editing | $0.096/image |
| Seedream 5.0 Lite | /v1/seedream-5.0-lite-spicy | Text-to-image / image editing | $0.048/image |
| Z-Image Pro | /v1/z-image-spicy-pro | Text to image | $0.03/image |
| Z-Image | /v1/z-image-spicy | Text to image | $0.02/image |
| Qwen Image Edit | /v1/qwen-image-edit-spicy | Image editing (upload local images first to get a URL) | $0.02/image |
| Face Swap | /v1/face-swap-spicy | Face swap | $0.026/image |
| Siren 1.0 | /v1/siren-1.0-spicy | Voice synthesis | $0.04/minute |
| Chat models | /v1/chat/completions | Chat completions (OpenAI-compatible) | from $0.175/1M tokens |
Talk to the model (chat completions)
Chat models via 统一 30% off,无内容拒绝层.使用 OpenAI 兼容的Chat completionsEndpoints:
curl -X POST https://api.hiveapi.dev/v1/chat/completions \
-H "Authorization: Bearer $HIVEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4",
"messages": [{ "role": "user", "content": "Hello, introduce yourself" }]
}'
Credits and billing
1000 credits = $1, pay as you go, no subscription, topped-up credits never expire. Model API top-ups are accepted only in USDT , processed via the OxaPay 网关完成.Seedance / Seedream 系列官网价统一 20% off,Chat models 30% off.详见Pricing.
Pre-launch
- Choose a model and use its typed endpoint.
- Run and track generation tasks with bounded polling or verified webhooks.
- Keep the API key server-side.
- When handling API errors, do not discard
request_id. - Use the generated API Reference for exact fields and response schemas.