80trust / 100

Chat Completions

by OpenAI gpt-6-astra-long in AI models & inference

x402 APIPassing, checked 2 h ago

gpt-6-astra-long: OpenAI GPT 6 Astra (>272K input tokens) chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 10.0/37.5, Standard 20.0/75.0, Fast 40.0/150.0; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Levels: low, medium, high, xhigh (model gpt-6-astra-long:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing

POST https://openai.mm.family/x402/v1/models/gpt-6-astra-long/chat/completions

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
107 ms typical, 174 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://openai.mm.family/x402/v1/models/gpt-6-astra-long/chat/completions" \
  -H "content-type: application/json" \
  -d '{"max_tokens":128,"messages":[{"content":"Hello","role":"user"}],"model":"gpt-6-astra-long"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fopenai.mm.family%2Fx402%2Fv1%2Fmodels%2Fgpt-6-astra-long%2Fchat%2Fcompletions
const res = await pay("https://openai.mm.family/x402/v1/models/gpt-6-astra-long/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":128,"messages":[{"content":"Hello","role":"user"}],"model":"gpt-6-astra-long"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 128,
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "gpt-6-astra-long"
}

Example output

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "Hello",
        "refusal": null,
        "role": "assistant"
      }
    }
  ],
  "id": "chatcmpl-x",
  "model": "gpt-6-astra-long",
  "object": "chat.completion",
  "service_tier": "flex",
  "usage": {
    "completion_tokens": 1,
    "prompt_tokens": 8,
    "total_tokens": 9
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402126 ms$0.001
5 h agoPassed402117 ms$0.001
9 h agoPassed402107 ms$0.001
13 h agoPassed402174 ms$0.001
16 h agoPassed402207 ms$0.001
21 h agoPassed402101 ms$0.001
24 h agoPassed40233 ms$0.001
27 h agoPassed40230 ms$0.001
32 h agoPassed40229 ms$0.001