# Use a Managed OpenAI API Key in Workflows

<figure><img src="/files/FOoMkXUWdoVDJuzP15uW" alt=""><figcaption></figcaption></figure>

You can now use a Roboflow-managed OpenAI API Key in your Workflows.

When you use the Roboflow-managed key, you will be billed based on usage according to our [Credits-based billing](https://roboflow.com/credits).

To use a Roboflow-managed key, set the "Api Key" field in a OpenAI Workflow block to "Roboflow Managed API Key".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/changelog/explore-by-month/june-2025/use-a-managed-openai-api-key-in-workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
