AI
Neo API

Documentation

Build with the Neo API using simple HTTP requests.

Quickstart

Send your first chat request.

cURL
curl -X POST https://api.died.pw/v1/chat/completions   -H 'Content-Type: application/json'   -H 'Authorization: Bearer sk-your-key'   -d '{
    "model": "openai/gpt-4.1",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": false
  }'

Authentication

Include the Bearer API key in the Authorization header.

Chat API

POST to /v1/chat/completions with the model and messages array.

Request
{
  "model": "openai/gpt-4.1",
  "messages": [
    { "role": "user", "content": "Write a haiku about the ocean." }
  ],
  "stream": false
}
Response
{
  "id": "chatcmpl_...",
  "object": "chat.completion",
  "model": "openai/gpt-4.1",
  "choices": [
    {
      "index": 0,
      "message": { "role": "assistant", "content": "Blue waves whispering..." },
      "finish_reason": "stop"
    }
  ]
}