Beta

This API is in beta. Endpoints, request/response formats, and behavior may change without notice.

API Reference

Terramind Documentation

Quickstart

Get up and running with the Terramind API in three steps.

1Get your API key

Go to Settings → API Keys in the Terramind dashboard and create a new key. Copy it immediately — you won't be able to see it again.

2Make your first request

Replace sk-tm-YOUR_KEY with your actual key:

cURL (streaming)
curl -X POST https://terramind.com/api/v1/chat \
  -H "Authorization: Bearer sk-tm-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "messages": [
      {"role": "user", "content": "Say hello in 3 languages."}
    ]
  }'

3Get a JSON response

For a simpler non-streaming JSON response, set "stream": false:

cURL (non-streaming)
curl -X POST https://terramind.com/api/v1/chat \
  -H "Authorization: Bearer sk-tm-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "stream": false,
    "messages": [
      {"role": "user", "content": "Say hello in 3 languages."}
    ]
  }'
Response
{
  "id": "a1b2c3d4-...",
  "model": "claude-haiku-4-5",
  "content": "Hello! Bonjour! Hola!",
  "usage": {
    "inputTokens": 15,
    "outputTokens": 42,
    "totalTokens": 57
  },
  "creditsConsumed": 0.0001
}

Next Steps

  • Chat endpoint — full parameter reference, tools, JSON mode, caching
  • Models — browse 100+ available models with pricing
  • SDK examples — TypeScript, Python, and Node.js code samples