What it is for
Use AI inference when you want to:- Test text generation models.
- Generate embeddings.
- Build simple AI features without operating model servers.
- Keep inference keys scoped to a LayerRail project.
- Prototype prompts in the console.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Call hosted language and embedding models through project-scoped LayerRail inference endpoints with per-project API keys and usage limits.
| Field | Meaning |
|---|---|
| Model name | The model you pass in requests. |
| Provider | The system backing the endpoint. |
| Capability | Text generation or embeddings. |
| Context length | The supported input window. |
| Price | Input and output token pricing where configured. |
| URL | The endpoint URL to call from your application. |
curl https://console.layerrail.com/ai/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "@cf/meta/llama-3.1-8b-instruct",
"messages": [
{ "role": "user", "content": "Write a short deployment checklist." }
]
}'
Was this page helpful?
