Publicly reachable image URL to classify.
USD 見積 $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
}
}