Skip to main content

Documentation Index

Fetch the complete documentation index at: https://student-213fb9fc.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

All requests require the Authorization: Bearer YOUR_API_KEY header.
export AJSTUDIOZ_API_KEY="your-api-key-here"

Ollama-Compatible API

Chat

curl https://api.ajstudioz.co.in/api/chat \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:27b",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "What is the speed of light?"}
    ],
    "stream": false
  }'

Chat (Streaming)

curl https://api.ajstudioz.co.in/api/chat \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v3.2",
    "messages": [{"role": "user", "content": "Count to 10."}],
    "stream": true
  }'

Generate (Text Completion)

curl https://api.ajstudioz.co.in/api/generate \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:4b",
    "prompt": "Once upon a time in a galaxy far away",
    "stream": false
  }'

List Models

curl https://api.ajstudioz.co.in/api/tags \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY"

Show Model Info

curl https://api.ajstudioz.co.in/api/show \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:27b"
  }'

Embeddings

curl https://api.ajstudioz.co.in/api/embeddings \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:4b",
    "prompt": "AJ STUDIOZ Cloud Infra provides AI inference"
  }'

OpenAI-Compatible API

Chat Completions

curl https://api.ajstudioz.co.in/v1/chat/completions \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5",
    "messages": [
      {"role": "user", "content": "What is the meaning of life?"}
    ],
    "temperature": 0.8,
    "max_tokens": 200
  }'

Text Completions

curl https://api.ajstudioz.co.in/v1/completions \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:4b",
    "prompt": "The benefits of cloud computing include",
    "max_tokens": 100
  }'

List Models (OpenAI format)

curl https://api.ajstudioz.co.in/v1/models \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY"

Embeddings (OpenAI format)

curl https://api.ajstudioz.co.in/v1/embeddings \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:4b",
    "input": "Hello, world!"
  }'

Pretty JSON Output

Pipe through jq for readable output:
curl https://api.ajstudioz.co.in/api/tags \
  -H "Authorization: Bearer $AJSTUDIOZ_API_KEY" | jq '.models[] | {name, size}'