Skip to content

APIBuilder

Klyroe for developers

Create an API key and call Klyroe's models from your own code.

2 lessons · about 8 minutes · free

By the end you can

  • Create, rotate and revoke an API key
  • Make a first call from your own code

Lesson 1 of 2 · 3 min read

Create an API key#

Open the console and choose Create key. A key is shown once, so store it somewhere safe, such as an environment variable. Anyone with the key can use your account.

Rotate a key to replace it, or revoke one you no longer need. If a key may have leaked, revoke it straight away.

Where in Klyroe Console, then Keys.

Lesson 2 of 2 · 5 min read

Your first call#

The API accepts the two most widely used chat request formats, so most existing SDKs work once you change the base URL and the key. The API docs list both formats, the base URL and examples you can copy.

Name the model in each request: prelude, suite, fugue or symphony. Start with suite and change the name to compare.

Where in Klyroe The API docs.

Check yourselfYou already use an SDK for another provider. What do you change to call Klyroe?

Put it to work

The quickest way to learn it is to do one real piece of work with it.