Skip to content

Quick start

  1. Open Inference in the Valgix dashboard.
  2. Select Set up billing under Overview and complete Polar Checkout.
  3. Once billing is active, open API keys and select Create API key.
  4. Copy the key when it appears. Inference shows its full value once.

Billing and usage · Manage and rotate API keys.

Replace YOUR_API_KEY with the key you just created.

Terminal window
curl --fail-with-body https://inference.valgix.com/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"

A successful response lists the available model IDs.

Terminal window
curl --fail-with-body https://inference.valgix.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Explain what DNS does in one sentence."}],
"max_tokens": 256
}'

Read the generated text at choices[0].message.content. After generation, check the token counts under Overview in the dashboard.

For Responses, Anthropic Messages, or a coding client, continue with the API reference or the integration directory.