Modell:
Publicly reachable image URL to classify.
USD-Schätzung $0.0003-$0.0005: Das größte Aufladepaket rechnet mit $1 = 2.000 Credits; das Starterpaket mit $1 = 1.000 Credits.
Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Abrechnungsregeln
Authentifizierung
Jede Anfrage muss im Authorization Header ein Bearer Token enthalten. Erstelle deinen API Key in der Konsole.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/chat/completionsRequest-Parameter
| Parameter | Typ | Erforderlich | Hinweise |
|---|---|---|---|
model | String | Erforderlich | Die Modellkennung für den Aufruf; verwende die ID dieses Modells. |
prompt | String | Erforderlich | Textprompt, der beschreibt, was du generieren möchtest. |
image_url | String | Optional | Publicly reachable image URL to classify. |
Request-Beispiel
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": ""
}'Response-Beispiel
{
"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
}
}