Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
用最短路径验证 API Key、文本接口、Claude Code 入口和 GPT Image 2。
https://code.heihuzi.ai
curl --request GET \ --url https://code.heihuzi.ai/v1/models \ --header 'Authorization: Bearer <token>'
curl --request POST \ --url https://code.heihuzi.ai/v1/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-5.5", "input": "用一句话介绍黑胡子AI便利店" }'
curl --request POST \ --url https://code.heihuzi.ai/v1/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "claude-sonnet-4-6", "max_tokens": 512, "messages": [ { "role": "user", "content": "hello" } ] }'
/v1/responses
curl --request POST \ --url https://code.heihuzi.ai/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-image-2", "prompt": "一张极简风格的蓝色 API 网关图标", "size": "1024x1024" }'