Publicly reachable image URL to classify.
美元估算 $0.0003-$0.0005:最高充值套餐按 $1 = 2,000 积分计算;入门套餐按 $1 = 1,000 积分计算。
历史记录
保存在此浏览器本地
0 个运行中 · 0 个已完成
计费规则
鉴权
每个请求都需要在 Authorization 头中携带 Bearer 令牌。请在控制台创建 API Key。
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/chat/completions请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | 字符串 | 必填 | 要调用的模型标识,使用该模型的 ID。 |
prompt | 字符串 | 必填 | 描述你想生成内容的文本提示词。 |
image_url | 字符串 | 可选 | Publicly reachable image URL to classify. |
请求示例
curl "https://apiany.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nsfw-image-detection",
"prompt": "A concise cinematic shot of a modern API operations dashboard, smooth camera move, clean white studio lighting",
"image_url": ""
}'响应示例
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "nsfw-image-detection",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 18,
"total_tokens": 30
}
}