English
MiniH3 API README (start here)
Base URL, authentication, getting a key, reading status codes, and where to get help — read this before your first call.
Useful links
| What | Where |
|---|---|
| Site and knowledge base | https://minih3.dev |
| Console (keys, top-ups, usage) | https://minih3.dev/console |
| Models and prices | https://minih3.dev/catalog |
| Skill package (for agents) | English: https://minih3.dev/skill/minih3-video-en.tar.gz ; Chinese: https://minih3.dev/skill/minih3-video.tar.gz |
| Site index for LLMs | https://minih3.dev/llms.txt |
| Support ticket (recommended) | POST /v1/tools/ticket with your own API key — free, works with a zero balance |
| [email protected] |
Base URL
- Use
https://api.minih3.devonly. Every path hangs off it, e.g.https://api.minih3.dev/v1/videos. - The API follows OpenAI conventions: text at
/v1/chat/completions, video at/v1/videos, platform tools at/v1/tools/*.
Authentication
Send this header on every request:
Authorization: Bearer <your API key>
Keep the key in the header only — never in a URL, a prompt or a ticket. Tickets that contain a key are rejected.
Get a key in 4 steps
- Sign up at https://minih3.dev and verify your email (Google sign-in also works). New accounts come with $0.50 of free credit, about 33 seconds of 768p.
- In the console, create an API key under Tokens.
- Copy the key into the header
Authorization: Bearer <key>. - Top up when the credit runs out — minimum $5; your balance does not expire.
Status codes
| Code | Usual cause | What to do |
|---|---|---|
| 400 | Bad parameters: a resolution this model does not allow, non-integer seconds, missing prompt, too many media files | Read error.message; it lists the allowed values or the limit |
| 401 | Key invalid, missing or deleted | Check the header; create a new key in the console |
| 403 | Balance too low (insufficient_user_quota); the key hit its own spending cap (pre_consume_token_quota_failed); or the key has no access to this model | Top up; raise or remove the key's cap in the console; or use a key that has access |
| 404 | The task id does not exist, or was not submitted with this key | Check the task_id |
| 429 | Too many requests (with a Retry-After header), or the upstream is busy (without it) | Wait for Retry-After if present, otherwise 30–60 s; error.code tells the two apart |
| 500 / 502 / 503 | Temporary server or upstream error | Retry later; requests that were not charged cost nothing |
Every error has the same shape:
{"error": {"code": "invalid_request", "message": "resolution must be one of … (request id: …)", "type": "new_api_error"}}
Send these two ids with a bug report
- Every response carries
X-Oneapi-Request-Id. - If you send
X-Trace-Id, it comes back unchanged asX-Client-Trace-Id.
Put both in your ticket and we can find the exact request.
Billing
- Video is billed by the seconds you request, charged when the submission is accepted; a rejected submission costs nothing, and a failed task is refunded in full automatically.
- Text is billed by tokens; platform tools per call or per minute.
- Per-model, per-resolution prices are on https://minih3.dev/catalog and readable anonymously at https://minih3.dev/api/pricing .
For Agents: every page is also Markdown (the Copy page button, or add /md to the page address), and /llms.txt lists them all.
Endpoints
Video
POST/v1/videosSubmit a video task (billed)GET/v1/videos/{task_id}Get a taskGET/v1/videos/{task_id}/contentDownload the video
Text
POST/v1/chat/completionsChat completions (billed)
Image
POST/v1/images/generationsImage generation (billed)POST/v1/images/editsImage editing (billed)
Tools
POST/v1/tools/trendingTrending reference videosPOST/v1/tools/fetch-tiktok-v1TikTok link to video URL (billed)POST/v1/tools/fetch-douyin-v1Douyin link to video URL (billed)POST/v1/tools/fetch-xhs-v1Xiaohongshu link to video URL (billed)POST/v1/tools/shotlistShot list from a video (older, still available) (billed)POST/v1/tools/imageReference image (billed)POST/v1/tools/voiceVoice-over (billed)POST/v1/tools/breakdown-v1Breakdown v1 by content (billed)POST/v1/tools/recordsRecords get, export, import, reportGET/v1/tools/jobs/{job_id}Get an async jobPOST/v1/tools/breakdown-merge-v1Series merge roster and report (billed)POST/v1/tools/adapt-v1Adapt: checklist, outline, script, shots (billed)POST/v1/tools/adapt-series-v1Adapt a whole series: one shared series bible (billed)POST/v1/tools/recipes-v1Recipe recommendations and catalogGET/uploadsList your uploadsPOST/uploadsUpload your own fileGET/uploads/{upload_id}Get a fresh link
Workflows
POST/v1/tools/workflowRemake workflow (older, still available)POST/v1/tools/breakdownVideo breakdown report (older, still available) (billed)POST/v1/tools/breakdown-series-v1Whole-series breakdown workflowPOST/v1/tools/remake-v1Remake v1 workflow
Support
POST/v1/tools/ticketSupport tickets
Agent access
POST/mcpMCP server
Audio
POST/v1/audio/speechText to speech (billed)