[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113836":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":14,"rankGlobal":10,"rankLanguage":10,"license":15,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":13,"starSnapshotCount":13,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},113836,"happyhorse-1-1-api-cn","xfrx6e\u002Fhappyhorse-1-1-api-cn","xfrx6e","HappyHorse 1.1 API (`happyhorse-1.1`): model id, pricing, parameters and copy-paste examples for the OpenAI-compatible APIMart endpoint.","https:\u002F\u002Fgo.apimart.ai\u002Fk-5f9fed",null,"Python",65,0,40,"Other",false,"main",true,[20,21,22,23,24,25,26,27,28],"ai-api-gateway","ai-image-api","apimart","happyhorse-1-1","happyhorse-1-1-api","image-api","image-editing","image-generation","text-to-image","2026-10-17 15:31:51","2026-11-14 09:45:40","# HappyHorse 1.1 API (`happyhorse-1.1`)\n\n\u003C!-- conv-kit:v1 -->\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbadges\u002Fprice.svg\" alt=\"observed unit price\"> \u003Cimg src=\"assets\u002Fbadges\u002Fbilling.svg\" alt=\"billing model\"> \u003Cimg src=\"assets\u002Fbadges\u002Fcompat.svg\" alt=\"OpenAI-compatible endpoint\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002F01-product-hero-perfume.jpg\" width=\"820\" alt=\"Sample render via the APIMart image API\">\n\u003C\u002Fp>\n\n> **from $0.01 per image** on the APIMart route — 一个 OpenAI 兼容端点 `https:\u002F\u002Fapi.apimart.ai\u002Fv1`，无需包月套餐。*(数据观测于 2026-10-12)*\n\n**[获取 API Key](https:\u002F\u002Fgo.apimart.ai\u002Fk-1f66bf)** · **[实时价格](https:\u002F\u002Fgo.apimart.ai\u002Fk-2fdd0f)** · **[模型页面](https:\u002F\u002Fgo.apimart.ai\u002Fk-5f9fed)** · [⚡ 60 秒快速上手](#quickstart)\n\n**为什么团队通过 APIMart 调用 HappyHorse 1.1（`happyhorse-1.1`）**\n\n- **一个 Key，整个目录。**同一个 `https:\u002F\u002Fapi.apimart.ai\u002Fv1` base URL 和 `Authorization` 请求头即可访问 HappyHorse 1.1（`happyhorse-1.1`）以及图像、视频、语言等 300+ 模型——只需切换 `model` 字段，客户端无需改动。\n- **$1 起充，按量付费。**没有订阅、也没有需要预先估算用量的预付费套餐：最低充值 $1，调用多少扣多少。\n- **费用随响应一并返回。**每个完成的任务都会报告实际计费金额（`cost` \u002F `credits_cost`）；状态为 `failed` 的任务会自动退款。\n- **原生异步设计。**提交任务、拿到 `task_id`、轮询 `GET \u002Fv1\u002Ftasks\u002F{id}`——批处理和重试都是普通的队列工作，不需要定制集成。\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\n\n\nHappyHorse 1.1 is served on APIMart with per-image pricing.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `happyhorse-1.1` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-5f9fed) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations`, then poll `GET \u002Fv1\u002Ftasks\u002F{task_id}`.\n\n## Pricing\n\n\u003C!-- pricing:model:start -->\n| Output | List price | Effective price |\n| --- | --- | --- |\n| per generated second | — | see the live pricing page |\n\n\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-2fdd0f) and [`data\u002Fmodel.json`](data\u002Fmodel.json) are refreshed by CI, and a completed task reports the exact amount in its `cost` field.\n\n## Request parameters\n\n| Field | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `model` | string | required | the model id shown in the route table above |\n| `prompt` | string | required | what to generate, or what to change when editing |\n| `size` | string | `auto` \u002F `1:1` | aspect ratio, or `auto` where the route supports it |\n| `resolution` | string | `1K` | output resolution tier — cost scales with it |\n| `n` | integer | `1` | number of images per task, where the route allows more than one |\n| `image_urls` | string[] | — | reference images as public HTTP(S) URLs or base64 data URLs |\n| `nsfw_check` | boolean | `false` | runs `omni-moderation-latest` before submitting |\n\nThe table lists the fields accepted by the APIMart `images\u002Fgenerations` endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-5f9fed) for anything this model adds on top.\n\n## Quickstart\n\n```bash\ncurl --request POST --url https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  --header \"Authorization: Bearer $APIMART_API_KEY\" --header 'Content-Type: application\u002Fjson' \\\n  -d '{\"model\":\"happyhorse-1.1\",\"prompt\":\"A bamboo forest at sunrise, slow push-in\",\"size\":\"1:1\",\"resolution\":\"1K\"}'\n```\n\n```python\nimport os, time, requests\n\nBASE = \"https:\u002F\u002Fapi.apimart.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['APIMART_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\ncreated = requests.post(f\"{BASE}\u002Fimages\u002Fgenerations\", headers=HEADERS, timeout=60, json={\n    \"model\": \"happyhorse-1.1\", \"prompt\": \"A bamboo forest at sunrise, slow push-in\",\n}).json()\ntask_id = created[\"data\"][\"id\"]\n\nwhile True:\n    task = requests.get(f\"{BASE}\u002Ftasks\u002F{task_id}\", headers=HEADERS, timeout=60).json()[\"data\"]\n    if task[\"status\"] in (\"completed\", \"failed\"):\n        break\n    time.sleep(5)\nprint(task.get(\"cost\"), task[\"result\"][\"images\"][0][\"url\"])\n```\n\nRunnable versions: [`examples\u002F`](examples). The task lifecycle is `pending → processing → completed | failed`.\n\n## FAQ\n\n**HappyHorse 1.1 的模型 id 是什么？**\n\n`happyhorse-1.1`。见上方路由表。\n\n**如何计费？**\n\n**from $0.01 per image** on the APIMart route。完成的任务会在 `cost` 字段中给出准确金额；失败的任务会自动退款。\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-1f66bf) link — $1 minimum top-up, no plan required.\n\n\u003C!-- related-repos:auto -->\n## Related repositories\n\n- **Same model, this language** — the other half of this pair: [happyhorse-1-1-prompts-cn](https:\u002F\u002Fgithub.com\u002Fxfrx6e\u002Fhappyhorse-1-1-prompts-cn)\n- **Same model, other languages** — 10 more language builds: English [happyhorse-1-1-api](https:\u002F\u002Fgithub.com\u002Fvb3cbp\u002Fhappyhorse-1-1-api) · Deutsch [happyhorse-1-1-api-de](https:\u002F\u002Fgithub.com\u002Foj2dbtkaag9z3\u002Fhappyhorse-1-1-api-de) · Español `happyhorse-1-1-api-es` · Français [happyhorse-1-1-api-fr](https:\u002F\u002Fgithub.com\u002Fm8-h273hkl\u002Fhappyhorse-1-1-api-fr) · Relay\u002Fgateway `happyhorse-1-1-api-gateway` · Bahasa `happyhorse-1-1-api-id` · 日本語 `happyhorse-1-1-api-ja` · 한국어 `happyhorse-1-1-api-ko` · Português `happyhorse-1-1-api-pt` · Русский [happyhorse-1-1-api-ru](https:\u002F\u002Fgithub.com\u002Fzlcg4ajylte2\u002Fhappyhorse-1-1-api-ru)\n- **More models in this language** — [midjourney-api-cn](https:\u002F\u002Fgithub.com\u002Fapimartycl6k972t\u002Fmidjourney-api-cn) · [gemini-2-5-flash-image-preview-api-cn](https:\u002F\u002Fgithub.com\u002Fhm-5j\u002Fgemini-2-5-flash-image-preview-api-cn) · [nano-banana-api-cn](https:\u002F\u002Fgithub.com\u002Fmpflv\u002Fnano-banana-api-cn) · [gemini-3-1-flash-image-preview-api-cn](https:\u002F\u002Fgithub.com\u002Futp00\u002Fgemini-3-1-flash-image-preview-api-cn) · [nano-banana-2-api-cn](https:\u002F\u002Fgithub.com\u002Fi3hxnu6\u002Fnano-banana-2-api-cn) · [gemini-3-pro-image-preview-api-cn](https:\u002F\u002Fgithub.com\u002Fvd0tv42d\u002Fgemini-3-pro-image-preview-api-cn)\n- **Topic hubs** — every build of this model, all languages: [happyhorse-1-1](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fhappyhorse-1-1) · [happyhorse-1-1-api](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fhappyhorse-1-1-api)\n\nThis repository is one build in a cross-linked set of API guides for the same model family; each language build links back to the others.\n\u003C!-- \u002Frelated-repos:auto -->\n\n## Attributed links (how this repository is measured)\n\n| Purpose | Attributed link | Target |\n| --- | --- | --- |\n| Model page | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-5f9fed> | `apimart.ai\u002Fzh\u002Fmodel\u002Fhappyhorse-1-0` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-2fdd0f> | `apimart.ai\u002Fzh\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-1f66bf> | `apimart.ai\u002Fzh\u002Fkeys` |\n\nOutbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by\n`tools\u002Fcheck_links.py` in CI.\n\n## Disclosure\n\nHappyHorse 1.1 is a third-party model served through APIMart; this repository documents how to call it and publishes\nmodel ids and prices, and does not claim official status. Model names, prices and documentation belong to their\nrespective owners.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","HappyHorse 1.1 API 是一个基于 APIMart 平台提供的 OpenAI 兼容图像生成与编辑服务接口，支持 text-to-image 和图像编辑（如参考图生成），采用按量计费模式（低至 $0.01\u002F图），无需订阅。核心特点包括：统一 API 网关（单 Key 调用 300+ 模型）、原生异步任务机制（提交→轮询 task_id）、自动费用返回与失败退款、支持分辨率分级计价及 NSFW 内容前置审核。适用于需灵活调用高质量图像模型的轻量级应用、原型验证、自动化内容生产及成本敏感型 AI 工具集成场景。",2,"2026-11-24 04:47:11","CREATED_QUERY"]