Send your first API request
Try one short request and check its usage before running a batch. Elysia API is an independent third-party relay operated from Japan.
1. Create an account and an API key
Create an account, confirm your email and sign in. Open API Keys, create a key for the test and check its limits and available balance. Keep the key on your machine.
The console may display USD equivalents. Payments are charged in Japanese yen. Check the current model pricing and available groups before making a billable call.
A JPY 1,000 payment adds JPY 1,000 of API usage balance. Input, output, cache and long-context pricing conditions vary by model.
2. Try one Responses request
For an SDK, use the base URL https://api.elysia.earth/v1. For a direct HTTP request, send POST https://api.elysia.earth/v1/responses. The Python 3 example below uses gpt-6.2-sol and reads your key without echoing it. Save the code as first_response.py and run python first_response.py.
import json
from getpass import getpass
from http.client import HTTPSConnection
key = getpass("Elysia API key: ").strip()
if not key:
raise SystemExit("No API key entered.")
payload = {
"model": "gpt-6.2-sol",
"input": "Reply with OK.",
"max_output_tokens": 32,
"reasoning": {"effort": "low"},
"store": False,
}
connection = HTTPSConnection("api.elysia.earth", timeout=60)
try:
connection.request(
"POST",
"/v1/responses",
body=json.dumps(payload).encode("utf-8"),
headers={"Authorization": "Bearer " + key, "Content-Type": "application/json"},
)
response = connection.getresponse()
if response.status != 200:
raise SystemExit(f"HTTP {response.status}. Check the guide before retrying.")
request_id = response.getheader("X-Oneapi-Request-Id")
result = json.load(response)
except OSError:
raise SystemExit("Connection failed or timed out. Check usage before retrying.") from None
finally:
connection.close()
print("status:", result.get("status"))
print("model:", result.get("model"))
if request_id:
print("request_id:", request_id)
for item in result.get("output", []):
for part in item.get("content", []):
if part.get("type") == "output_text":
print(part["text"])
print("usage:", json.dumps(result.get("usage", {})))
On November 27, 2026 JST, we sent one short non-streaming text request to gpt-6.2-sol and one to gpt-6.2-astra. Both completed with HTTP 200 and had matching usage entries. This example sends a single billable request. Streaming and Codex CLI require their own checks.
3. Find the request in your usage history
Look for status: completed and the returned text. Match the model and time in your usage logs and check the token breakdown. If the request timed out, check the log before retrying.
The sample prints request_id when Elysia returns the X-Oneapi-Request-Id response header.
In usage logs, open the matching row and compare the request ID in its details. Check the model and the input and output token counts as well.
If a timeout leaves you without an ID, look up the request by time and model before retrying. A missing log entry leaves the outcome uncertain.
On November 27, 2026 JST, one short synthetic text request per model returned these non-streaming Responses counts. gpt-6.2-astra returned 10 input and 6 output tokens, and gpt-6.2-sol returned 10 input and 5 output tokens. Each response request ID matched its usage record.
401· Check that the API key is valid and active.404· Check the URL in your browser. Look for/v1/v1and confirm the model is available to your key.429· Check the rate or quota limit in the error message before trying again.
Use public or synthetic text for the first request. For a trial, read the current application conditions (Japanese).
Using Codex CLI on Windows? See custom provider setup and 404 fixes.