June logo
JuneDocumentation
Models and who pays

Use an API key

Pay for June's turns with your own API key from OpenAI, OpenRouter, Requesty or another OpenAI-compatible endpoint.

Add an API key as a funding source, pick it, and it pays for every turn in that space: your personal space, or an organization MODUS offers API keys to, where you are an admin or its billing manager (Pay for an organization).

Add a key

Open the Funding section, on your Settings page for your own space or on the organization's page for an organization.
Choose Add a key and pick the provider.
Paste the API key and give it a label of up to 80 characters. Custom needs a label; for the other providers it is optional, and the key is named after the provider.
June stores the key encrypted, then checks it by listing the models it can reach. Only its last four characters are shown again.
Pick the key in the list to make it the source that pays. Adding a key does not switch it on.

Providers

New keys must use the OpenAI-compatible chat completions API. Pick OpenAI, OpenRouter or Requesty and paste that provider's key. For another OpenAI-compatible endpoint, pick Custom and enter its base URL (a public https address), a label and the key. For Claude models, use a router such as OpenRouter. Previously saved Anthropic keys remain usable and say so on their row; June does not accept new keys in the Anthropic Messages format.

You do not type model names: June reads them from the endpoint when it checks the key. A compatible chat API alone is not enough: the endpoint must also let June list at least one model with that key. When the endpoint describes capabilities, June keeps models that support text chat and tools and uses their names and reasoning options in the picker.

Use it

While the key pays, the model picker shows one group, named after the key's label, with the models the endpoint listed. Nothing else is offered in that space until you pick No funding source.

If the check fails, read the reason on the key's row. Check the key's access and, for a custom endpoint, its base URL and protocol, then choose Verify again. A key that failed cannot pay. For a newly added key, a successful check does not select it: pick it in the list. If a working key later stops paying, turns in that space stop rather than move to another source: fix the key, pick another source or pick No funding source (see When a source cannot pay).

Remove a key

Choose Remove on the key's row, then Remove source. If it was the source that paid, the space needs another funding option before June can run again. In your personal space a connected plan can also pay; organizations need a selected source. A chat the key paid for stops: start a new chat after setting up funding.

What June does not do

  • It does not use the key outside the space you added it in.