Your FlexInference key
Create it in the dashboard. It starts withflex_live_ and you see it once, so copy it then. Send it as a bearer token.
401 invalid_api_key. A revoked key returns 401 revoked_api_key, so you can tell the two apart.
What a key can carry
A plain key holds your identity and nothing else, so each request sendsstart_within itself. An agent key also holds a duration, plus a retry policy when you ask for one. We fill in whichever field the request left out, and a value in the body always beats the key. The response header x-flexinference-defaults-applied lists what the key filled in.
Edit those defaults in the dashboard and live traffic picks them up within seconds. You keep the same key. Revoking a key clears its defaults with it.
Your provider keys
We don’t resell inference. Add each provider key once in the dashboard, and your provider bills you for the tokens.openaitakes an OpenAI key,sk-prefix.googletakes a Gemini API key from Google AI Studio.anthropictakes an Anthropic key,sk-ant-prefix.vertextakes a Vertex express key,AQ.prefix.bedrocktakes a Bedrock inference key,ABSKprefix, plus a region.foundrytakes an Azure AI Foundry key, plus its resource name.cloudflaretakes a Workers AI token, plus your account id.