Schnelleinstieg
Basis-URL https://arteza.ai/api/v1
OpenAPI 3.1-Spezifikation für SDK-Generatoren und Agenten: /api/v1/openapi.json
Offizielle SDKs für TypeScript und Python, eine Kommandozeile und Agent-Skills: SDKs und CLI
- Erstellen Sie einen API-Schlüssel in der Konsole. Konsole öffnen
- Wählen Sie, wie der Schlüssel bezahlt wird: Ihre Plan-Credits oder ein Pay-as-you-go-USD-Guthaben.
- Senden Sie Ihre erste Anfrage.
curl https://arteza.ai/api/v1/generations \
-H "Authorization: Bearer $ARTEZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2",
"input": { "prompt": "A red fox in fresh snow, golden hour" }
}'Die Antwort ist eine Generierung. Bilder sind oft innerhalb der Anfrage abgeschlossen; Video wird zurückgegeben, während es noch läuft, also fragen Sie es ab oder verwenden Sie einen Webhook.
{
"id": "4f1c2b9e-8d6a-4c51-9a63-0f2b7d1e5a90",
"object": "generation",
"model": "nano-banana-2",
"status": "completed",
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": "2026-11-28T10:00:07.412Z",
"input": {
"prompt": "A red fox in fresh snow, golden hour",
"aspect_ratio": "1:1",
"num_images": 1
},
"output": {
"files": [
{
"url": "https://assets.arteza.ai/generations/4f1c2b9e.png",
"type": "image"
}
],
"thumbnail_url": null
},
"error": null,
"billing": {
"funding": "usd",
"usd": 0.08,
"usd_micros": 80000,
"refunded": false
}
}