Skip to content

Quickstart

Make your first request against the ResetData inference API in a few minutes. The API is OpenAI-compatible, so existing OpenAI SDKs work by pointing the base URL at ResetData.

  1. Get an API key. Create one from API keys in the ResetData app, then export it. Keys start with sk-rd- and are shown in full only once.

    Terminal window
    export RESETDATA_API_KEY="sk-rd-..."
  2. Send a chat completion. The endpoint is https://api.resetdata.ai/api/v1/chat/completions.

    Terminal window
    curl https://api.resetdata.ai/api/v1/chat/completions \
    -H "Authorization: Bearer $RESETDATA_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "zai/glm-5.2",
    "messages": [
    { "role": "user", "content": "Hello from ResetData!" }
    ]
    }'
  3. Read the response. You’ll get an OpenAI-style chat.completion object with the assistant’s reply in choices[0].message.content.