Path · 13 lessons · about 1 h 41 min

App developers

For people calling Phaseo from their own code.

Start path
0 of 13 lessons complete
What is Phaseo?
  1. 1What Phaseo isPhaseo is a gateway: one API and one key in front of many models and the providers that host them.6 min
  2. 2Create an account and a keySign up, learn what a workspace owns, and create an API key you keep out of your code.7 min
  3. 3Find your way aroundLearn the handful of pages you'll use first: models, keys, billing, usage, logs and workspace settings.6 min
  4. 4Choose a modelUse the Models list, model pages and Compare to find a few candidates, then test them on your own examples before you commit.8 min
Make your first request
  1. 5Make a requestSend your API key, a model ID and your input to one OpenAI-compatible endpoint.7 min
  2. 6Read the responseFind the reply, why it stopped, who served it and what it cost.6 min
  3. 7When a request failsBranch on the error code and status, and retry only the errors that can succeed later.8 min
  4. 8Stream itShow the reply as it's written, and tell a finished stream from a broken one.9 min
Control routing and fallbacks
  1. 9Route across providersRank, limit or pin providers, and list fallback models for when they fail.10 min
  2. 10Use a presetSave a model, prompt and routing rules under one name, and call it from any app.7 min
Build real features
  1. 11Call toolsDescribe your functions, run the calls the model asks for, and send the results back until it answers.10 min
  2. 12Get structured outputSend a JSON Schema so the model returns JSON in your shape, then validate it before you use it.8 min
  3. 13Send images and audioAdd images, files and audio to a request, pick the endpoint for the output you want, and find models that accept each input.9 min