Skip to main content
The Gravix Layer API Reference provides precise, end-to-end documentation for every REST endpoint, with parameters, schemas, and runnable examples that make integrating inference, vectors, files, deployments, and sandboxes fast and reliable. A concise entry point to the Gravix Layer API reference. Use the links below to jump to specific endpoint pages for exact parameters, request/response shapes, and examples.
  • Base URL: https://api.gravixlayer.com/v1
  • Auth: Authorization: Bearer <GRAVIXLAYER_API_KEY>
Get your API Key from Platform

Quickstart

Run your first Gravix Layer request in seconds with this minimal example:
curl -X POST https://api.gravixlayer.com/v1/inference/chat/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer $GRAVIXLAYER_API_KEY' \
  -d '{
    "model": "meta-llama/llama-3.1-8b-instruct",
    "messages": [
      {
        "role": "user",
        "content": "Hello! Tell me about AI."
      }
    ]
  }'
Notes: Examples show required fields only; replace placeholders before use.

Status codes (common)

CodeMeaning
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
500Server Error