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.
-
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-..." -
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!" }]}'import osfrom openai import OpenAIclient = OpenAI(base_url="https://api.resetdata.ai/api/v1",api_key=os.environ["RESETDATA_API_KEY"],)resp = client.chat.completions.create(model="zai/glm-5.2",messages=[{"role": "user", "content": "Hello from ResetData!"}],)print(resp.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({baseURL: "https://api.resetdata.ai/api/v1",apiKey: process.env.RESETDATA_API_KEY,});const resp = await client.chat.completions.create({model: "zai/glm-5.2",messages: [{ role: "user", content: "Hello from ResetData!" }],});console.log(resp.choices[0].message.content); -
Read the response. You’ll get an OpenAI-style
chat.completionobject with the assistant’s reply inchoices[0].message.content.