eroq

Per iniziare

L’API di eroq

Un solo URL di base, una sola chiave bearer, una sola unità di conto. Ogni modello — chat roleplay, immagini, video, voce, trascrizione — segue le stesse convenzioni, e ogni chiamata ha un prezzo in crediti che puoi leggere su la tabella dei prezzi.

Fai una richiesta

Le forme di richiesta e risposta seguono la convenzione OpenAI dove esiste (chat/completions, images/generations, audio/speech), quindi il codice client esistente di solito si adatta cambiando tre stringhe: l’URL di base, la chiave e l’id del modello.

URL di basehttps://eroq.ai/v1
Run a conversation turn against eroq RP+, RP or eroq RP mini
curl https://eroq.ai/v1/chat/completions \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "eroq-rp-plus",
  "context": "Mira: sardonic starship mechanic, dry humor, hates small talk. Scene: engine bay, mid-shift.",
  "messages": [
    {
      "role": "user",
      "content": "The reactor is making that noise again."
    }
  ]
}'
{
  "id": "cmpl_9f2e17ab",
  "object": "chat.completion",
  "model": "eroq-rp-plus",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "*slides out from under the manifold, wiping grease on her overalls* That noise is the reactor's way of saying you skipped the coolant flush. Again."
    },
    "finish_reason": "stop"
  }],
  "usage": { "credits_spent": 3, "credits_remaining": 997 }
}

Guarda una chiamata in azione

Non hai ancora una chiave? Esegui l’esempio: riproduce uno scambio reale tratto dai dati della documentazione, interamente nel tuo browser.

/v1/chat/completions
→ POST /v1/chat/completions
Premi esegui: viene riprodotto uno scambio reale con i dati della documentazione. Nessuna chiave, nessuna richiesta, nessun addebito.

Scegli il tuo percorso