# one-api.ai > Generate images and videos from one API and one command-line tool. - [Introduction](https://docs.one-api.ai/index.md): one-api.ai generates images and videos through one API key, one HTTP API and one command-line tool. - [Quickstart](https://docs.one-api.ai/quickstart.md): Generate an image with one request, then fetch the result. - [Authentication](https://docs.one-api.ai/authentication.md): Send your API key as a bearer token on every request. - [Generate images](https://docs.one-api.ai/guides/images.md): Create an image from a prompt with z-image-turbo. - [Generate videos](https://docs.one-api.ai/guides/videos.md): Create a video from a prompt with p-video. - [Tasks and waiting](https://docs.one-api.ai/guides/tasks.md): How a generation moves from submitted to completed, and how to wait for it without a polling loop. - [Command-line tool](https://docs.one-api.ai/cli.md): oneapi generates images and videos from a terminal and saves the file in one command. - [Billing](https://docs.one-api.ai/guides/billing.md): Prepaid credits, what each generation costs, and when you are charged. - [Errors](https://docs.one-api.ai/guides/errors.md): Error format, status codes, and what to do about each one. - [Create an image](https://docs.one-api.ai/api-reference/generate/create-an-image.md): Starts an image generation task. The price is reserved from your credits now, charged when the task completes, and refunded if it fails. - [Create a video](https://docs.one-api.ai/api-reference/generate/create-a-video.md): Starts a video generation task. The price is duration times the per-second rate for the chosen resolution and draft mode. - [Get a task](https://docs.one-api.ai/api-reference/tasks/get-a-task.md): Returns one of your tasks. A task that belongs to another account is a 404. - [List tasks](https://docs.one-api.ai/api-reference/tasks/list-tasks.md): Returns your 20 most recent tasks, newest first. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.