FilyBase logoFilyBase
DOCUMENTATION

Getting started

1. Get your API key

Create a free account and grab a key from the dashboard. Every new account starts with $5 in credits — no card required.

Create an account

2. Make your first request

Endpoints are OpenAI-compatible — point your existing SDK at our base URL and pass any model from the catalog.

curl https://api.filybase.ai/v1/completions \
-H "Authorization: Bearer $FILYBASE_KEY" \
-d '{"model": "llama-3.1-70b", "prompt": "Hello, world"}'

3. Handle the response

Responses stream back as JSON, with usage and timing metadata on every call.

{
"id": "cmpl-8f2a...",
"model": "llama-3.1-70b",
"latency_ms": 41,
"usage": { "total_tokens": 812 }
}

Authentication

Every request is authenticated with a bearer token in the Authorization header. Keys are scoped per project and can be rotated anytime from the dashboard — never share one in client-side code.

Streaming responses

Pass "stream": true to receive server-sent events, token by token — ideal for chat interfaces.

Error handling

Errors return standard HTTP status codes with a JSON body describing the issue, plus a request_id for support.

Rate limits

Pay-as-you-go accounts share a request pool. Need higher throughput? The Scale plan raises your limits — see pricing.

SDKs

Official clients for Python and Node — both are drop-in replacements for the OpenAI SDK.

pip install filybase
npm i filybase