HiAPI
  • 模型广场
  • 定价
搜索

搜索 HiAPI 模型、工具和资源。

  • 模型广场
  • 定价
HiAPI

一个 API,所有 AI 模型

通过一个生产级 API,调用领先模型生成图像、视频与音频。

免费获取 API Key

AI 图像 API

  • 全部图像模型
  • GPT Image 2.5 Flare
  • GPT Image 2.5 Sunburst
  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0 Pro
  • Qwen Image 2.0 Pro
  • FLUX 1.1 Pro

AI 视频 API

  • 全部视频模型
  • Seedance 2.5
  • FLUX.3 Video
  • Seedance 2.0
  • Veo 3.1
  • Kling 3.0

AI 音频 API

  • 全部音频模型
  • MiniMax Music 2.6
  • MiniMax Music 1.5
  • ElevenLabs v3
  • 文字生成音乐
  • 文字转语音

产品

  • 模型广场
  • 在线试用
  • 定价
  • 图片 API 成本计算器
  • 免费 GPT Image 2 生成器
  • 免费图片去背景
  • 免费 Nano Banana 图片生成器
  • 穿搭风格预览
  • 商品图实验室

开发者

  • Agent 接入
  • 文档
  • API 参考
  • Agent Skills
  • LLM 接入索引
  • 博客

公司

  • 关于我们
  • 联系支持
  • 服务条款
  • 隐私政策

© 2026 hiapi. 保留所有权利。

GitHub 开源项目PyPI Python SDK
此文暂无当前语言版本,显示原文。
  • Common causes
  • Fix steps
  • Verify with a minimal request
  • Related
  • FAQ
教程2026年6月26日5 分钟阅读

hiapi 'model not available' / 'model not found' errors: causes and fixes

hiapi更新于 2026年7月30日Troubleshootinghiapi APIModelsError Codes

最新模型

探索模型

目录
  • Common causes
  • Fix steps
  • Verify with a minimal request
  • Related
  • FAQ

现在就用 HiAPI 生成

选一个模型,输入你的提示词,直接查看生成结果。

HiAPI Blog

相关文章

HiAPI

现在就用 HiAPI 生成

If POST https://api.hiapi.ai/v1/tasks rejects a request because the model is unavailable or the request is invalid, the task was not created. Check the exact model name and request fields against the current model documentation before retrying.

Common causes

  1. The model name is stale or incomplete. HiAPI model names are not all shaped the same way. Some are bare names, while others include a modality path. GPT Image 2 text-to-image requests use gpt-image-2/text-to-image.
  2. A typo, casing difference, or hidden whitespace changed the name. Copy the model name from the current docs instead of typing it from memory, and trim values loaded from environment variables.
  3. The model or route was retired or renamed. A name from an old article or saved snippet may no longer be available. Use the current model page and changelog as the source of truth.
  4. The request mixes route formats. When a model offers multiple routes, use the documented top-level route field or the supported @route form, but do not send conflicting values.
  5. Authentication failed before routing. A 401 means the API key is missing or invalid. A 403 means the key does not have permission. Fix those separately from the model field.

Fix steps

  1. Open the current GPT Image 2 documentation or the relevant model page and copy the exact model name.
  2. Keep modality suffixes that are part of the documented name. For GPT Image 2 text-to-image, use gpt-image-2/text-to-image.
  3. Compare every field inside input with that model's parameter table. A valid model name can still return 400 INVALID_REQUEST when an input field is unsupported.
  4. Strip whitespace at the call site. In Python, use model = os.environ["MODEL"].strip(); in Node.js, use model.trim().
  5. If the model has multiple routes, pass the documented top-level route value and use the parameter shape for that route.
  6. Log the full HTTP status and response body. Do not infer a key problem from a model validation error, or a model problem from a 401/403.

Verify with a minimal request

curl -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer $HIAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2/text-to-image",
    "input": {
      "prompt": "a small ceramic mug on a wooden table, soft window light",
      "aspect_ratio": "1:1",
      "resolution": "1K"
    }
  }'

An HTTP 200 response with data.taskId means the task was accepted. Poll GET /v1/tasks/:id until data.status is success or fail, or configure a callback for production. For a 400, read the validation message and re-check the model page. For a 401 or 403, fix the key or its permissions.

Related

  • GPT Image 2 model documentation
  • Create Task API reference
  • Authentication guide
  • HiAPI models overview

FAQ

Should I strip /text-to-image from every model name? No. Model naming differs by family. Copy the fixed value from the current model documentation. For GPT Image 2 text-to-image, /text-to-image is part of the model name.

Does a model error mean my key is wrong? Not necessarily. Request validation and authentication are separate. A 401 means the key is missing or invalid; a 403 means it lacks permission. A 400 points to the request shape, model name, route, or input fields.

Can I normalize all model names in my client? Avoid inventing a normalization rule. Store and send the exact names published in the current model documentation.

最新模型

查看全部模型
  • GPT Image 2.5 Flare5 折最低 $0.025/张
  • GPT Image 2.5 Sunburst5 折最低 $0.025/张
  • GPT Image 2最低 $0.030/张
  • Nano Banana 25 折最低 $0.018/张

探索模型

文本图片视频音频
返回博客
GPT Image 2.5 Flare5 折最低 $0.050/张$0.025/张
GPT Image 2.5 Sunburst5 折最低 $0.050/张$0.025/张
GPT Image 2最低 $0.030/张
Nano Banana 25 折最低 $0.036/张$0.018/张
查看全部模型
文本对话与推理
图片生成与编辑
视频文生与图生
音频语音与音乐
开始生成
查看模型价格
查看全部文章
HiAPI 402 Error: How to Fix 'Insufficient Balance'

HiAPI 402 Error: How to Fix 'Insufficient Balance'

Seedream API Cost Optimization: How to Cut Image Generation Costs on hiapi

Seedream API Cost Optimization: How to Cut Image Generation Costs on hiapi

Seedance 2.0 Ext First-Frame Video Prompts: Anchor vs Interpolation

Seedance 2.0 Ext First-Frame Video Prompts: Anchor vs Interpolation

Seedance 2.0 Realistic Prompt: Making AI Video Look Like Real Phone Footage

Seedance 2.0 Realistic Prompt: Making AI Video Look Like Real Phone Footage

HiAPI Task Timeout and 504 Errors: How to Fix Them

HiAPI Task Timeout and 504 Errors: How to Fix Them

Building Multi-Model AI Apps with a Single Unified API on hiapi

Building Multi-Model AI Apps with a Single Unified API on hiapi

开始生成