[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109652":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":15,"topics":18,"createdAt":9,"pushedAt":19,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":12,"starSnapshotCount":12,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},109652,"wan2.7-image-api","apimartf7gldzb0l\u002Fwan2.7-image-api","apimartf7gldzb0l","Wan 2.7 Image API (`wan2.7-image`): model id, pricing, parameters and copy-paste examples for the OpenAI-compatible APIMart endpoint.",null,"Python",70,0,40,"Other",false,"main",true,[],"2026-11-23 18:21:29","2026-11-12 16:23:01","# Wan 2.7 Image API (`wan2.7-image`)\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.0216 per image** — one OpenAI-compatible endpoint at `https:\u002F\u002Fapi.apimart.ai\u002Fv1`, no monthly plan required. *(observed 2026-10-12)*\n\n**[Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-aad2bc)** · **[Live pricing](https:\u002F\u002Fgo.apimart.ai\u002Fk-b22635)** · **[Model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-84e90c)** · [⚡ 60-second quickstart](#quickstart)\n\n**Why teams call Wan 2.7 Image (`wan2.7-image`) through APIMart**\n\n- **One key, entire catalog.** The same `https:\u002F\u002Fapi.apimart.ai\u002Fv1` base URL and `Authorization` header reach Wan 2.7 Image (`wan2.7-image`) and 300+ other image, video and language models — switch the `model` field, not your client.\n- **$1 minimum, pay as you go.** No subscription and no prepaid plan to size up front: top up from $1 and spend it on calls.\n- **The charge comes back in the response.** Every completed task reports the amount billed (`cost` \u002F `credits_cost`); a task marked `failed` is refunded.\n- **Async by design.** Submit, take the `task_id`, poll `GET \u002Fv1\u002Ftasks\u002F{id}` — batching and retries are ordinary queue work, not a bespoke integration.\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\nWan 2.7 Image is Alibaba's Wan text-to-image model in standard and Pro versions for high-quality images.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `wan2.7-image` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-84e90c) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations` (OpenAI-compatible), 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| default | $0.0375 | $0.02 |\n| 4K | $0.05 | $0.03 |\n\nThe token-billed official route bills per million tokens instead: `text_input` $1.60, `cached_text_input` free, `image_input` $1.60, `cached_image_input` free, `text_output` $9.60, `image_output` $96.00.\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-b22635) 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 OpenAI-compatible image endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-84e90c) 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\":\"wan2.7-image\",\"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\": \"wan2.7-image\", \"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**What is the Wan 2.7 Image model id?**\n\n`wan2.7-image`. See the route table above.\n\n**How is it billed?**\n\n**from $0.0216 per image**. The completed task reports the exact amount in its `cost` field; a failed task is refunded.\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-aad2bc) link — $1 minimum top-up, no plan required.\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-84e90c> | `apimart.ai\u002Fmodel\u002Fwan-2-7-image` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-b22635> | `apimart.ai\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-aad2bc> | `apimart.ai\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\nWan 2.7 Image 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","Wan 2.7 Image API 是一个基于阿里通义万相（Wan）2.7版本的文本生成图像服务，通过 OpenAI 兼容接口提供按需调用能力。核心功能包括标准\u002FPro双版本图像生成、异步任务管理（提交→轮询）、细粒度按分辨率计费（如1K\u002F4K），并支持统一 API 密钥接入 APIMart 平台上的300+多模态模型。技术特点是兼容 OpenAI v1 接口规范、无需订阅、最低1美元起充、响应中直接返回精确扣费金额。适用于需要灵活、低成本接入高质量中文大模型图像生成能力的轻量级应用、原型开发、A\u002FB测试及中小规模内容生产场景。",2,"2026-11-24 04:37:04","CREATED_QUERY"]