Start here
Where everything is
GET
/v1on https://api.auray.ai/v1Takes no key and reads nothing: the base URL, asked for itself.
Takes no key and reads nothing: the base URL, asked for itself. It names where every operation under this base is described (openapi), the documentation, the model listing, and the three other doors — openai for OpenAI-compatible clients, queue to submit to a model address and run to run one and wait for the answer. A path under /v1 that does not exist answers 404 path_not_found pointing here.
#Authentication
No key needed — this document is public.
#Example request
curl https://api.auray.ai/v1const res = await fetch("https://api.auray.ai/v1", {
method: "GET",
});
console.log(await res.json());import requests
r = requests.get(
"https://api.auray.ai/v1",
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.auray.ai/v1", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1")
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.auray.ai/v1");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");#Responses
#200 OK
OK. Absolute URLs, every one a published origin.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
object | string | no | — | One of "index". |
base | string | no | — | This base URL. A URL. |
openapi | string | no | — | This document: every operation under the base. A URL. |
docs | string | no | — | A URL. |
models | string | no | — | GET it for every model address. A URL. |
openai | string | no | — | The base an OpenAI client is configured with. A URL. |
queue | string | no | — | Submit to <queue>/<address>. A URL. |
run | string | no | — | Run at <run>/<address> and wait for the output. A URL. |
mcp | string | no | — | The Model Context Protocol server to give an agent: https://mcp.auray.ai/mcp. POST /mcp under this base answers the same. A URL. |
request_id | string | no | — |
Headers:
| Header | Description |
|---|---|
X-Request-Id |
#Status codes
| Status | Meaning |
|---|---|
200 | OK. Absolute URLs, every one a published origin. |
Every refusal names its code, and every code is explained at Errors.