> For the complete documentation index, see [llms.txt](https://diffio.ai/llms.txt). This page is also available as HTML at https://diffio.ai/docs/overview/introduction/.

# Diffio API documentation

Guides and references for restoring speech audio, reviewing transcripts and integrating Diffio.

- Speech focused restoration
- Audio and video
- Transcripts and A/B review

[Developer quickstart](https://diffio.ai/docs/developers/quick-start/) [Models](https://diffio.ai/docs/overview/models/) [API reference](https://diffio.ai/docs/api-reference/introduction/)

Choosing a provider? See the [speech enhancement API comparison](https://diffio.ai/speech-enhancement-api-comparison/) (ElevenLabs, Krisp, Auphonic and others).

**The finished project view in the Diffio app, drawn here; the API returns the same restored audio, video and transcript.**

Coding with an agent?

One URL holds every guide and endpoint as plain text. Paste it, or the prompt, into Claude Code, Codex, Cursor or any coding agent.

[https://diffio.ai/docs/llms-full.txt](https://diffio.ai/docs/llms-full.txt)

## Start here

1. [Get an API key](https://diffio.ai/developers/api-keys/) and export it as `DIFFIO_API_KEY`
2. Install `pip install diffio` or `npm install diffio`
3. Restore a file in one call: [Quickstart](https://diffio.ai/docs/developers/quick-start/)

## What you can build

Short recipes on the API, each one complete file in Python and Node. [All use-case guides](https://diffio.ai/docs/developers/guides/)

- [Podcast cleanup in a SaaS app: Browser upload → webhook → player](https://diffio.ai/docs/developers/guides/saas-podcast-cleanup/)
- [Edit a transcript: Transcript → estimate → edit](https://diffio.ai/docs/developers/guides/edit-transcript/)
- [Let users edit by asking: Ask → proposals → edit](https://diffio.ai/docs/developers/guides/edit-by-asking/)
- [Separate speech and background: Stems → mix → export](https://diffio.ai/docs/developers/guides/separate-speech-and-background/)
- [Share a restored result: Publish → public read → revoke](https://diffio.ai/docs/developers/guides/share-a-result/)
- [Restore a video and stream it: Video upload → HLS stream](https://diffio.ai/docs/developers/guides/restore-video-and-stream/)
- [Compare Flash and Pro: One project → two generations](https://diffio.ai/docs/developers/guides/compare-flash-and-pro/)
- [Clean up a back catalogue: Folder → restores → usage](https://diffio.ai/docs/developers/guides/clean-up-a-back-catalogue/)
- [Bill your users from usage: Usage per end user → invoice](https://diffio.ai/docs/developers/guides/bill-users-from-usage/)

## Models

- [**Diffio 4.7 Flash**, `diffio-flash`, $5/hour](https://diffio.ai/docs/overview/models/)
- [**Diffio 4.7 Pro**, `diffio-pro`, $10/hour](https://diffio.ai/docs/overview/models/)

Start with Flash, then compare Pro on your file. [Compare models](https://diffio.ai/docs/overview/models/)

## How the API works

A project, then one or more generations. The Python and Node SDKs run all four steps in one call; the [Diffio API overview](https://diffio.ai/api-overview/) shows the whole batch workflow.

1. **Create a project** [`POST /projects`](https://diffio.ai/docs/api-reference/create-project/) Project `id` and `upload` instructions
2. **Start a generation** [`POST /projects/{project_id}/generations`](https://diffio.ai/docs/api-reference/create-generation/) Pass `diffio-flash` or `diffio-pro`; run both to compare
3. **Follow progress** [`GET /projects/{project_id}/generations/{generation_id}`](https://diffio.ai/docs/api-reference/get-generation/) Poll until `complete`, or use a [webhook](https://diffio.ai/docs/developers/webhooks/)
4. **Download the result** [`GET /projects/{project_id}/generations/{generation_id}/media`](https://diffio.ai/docs/api-reference/get-generation-media/) `files` URLs for audio, video, HLS and transcript

**All 30 endpoints by category**

### Models

- [List models](https://diffio.ai/docs/api-reference/list-models/) `GET /models`

### Projects

- [Create a project](https://diffio.ai/docs/api-reference/create-project/) `POST /projects`
- [List projects](https://diffio.ai/docs/api-reference/list-projects/) `GET /projects`
- [Get a project](https://diffio.ai/docs/api-reference/get-project/) `GET /projects/{project_id}`
- [Delete a project](https://diffio.ai/docs/api-reference/delete-project/) `DELETE /projects/{project_id}`
- [Get new upload instructions](https://diffio.ai/docs/api-reference/reopen-project-upload/) `POST /projects/{project_id}/upload`
- [Complete a project's upload](https://diffio.ai/docs/api-reference/complete-project-upload/) `POST /projects/{project_id}/upload/complete`

### Generations

- [Create a generation](https://diffio.ai/docs/api-reference/create-generation/) `POST /projects/{project_id}/generations`
- [List a project's generations](https://diffio.ai/docs/api-reference/list-project-generations/) `GET /projects/{project_id}/generations`
- [Get a generation](https://diffio.ai/docs/api-reference/get-generation/) `GET /projects/{project_id}/generations/{generation_id}`
- [Get a playback grant](https://diffio.ai/docs/api-reference/get-generation-media/) `GET /projects/{project_id}/generations/{generation_id}/media`
- [Estimate a transcript edit](https://diffio.ai/docs/api-reference/estimate-transcript-edit/) `POST /projects/{project_id}/generations/{generation_id}/edits/estimate`
- [Edit a generation's transcript](https://diffio.ai/docs/api-reference/create-transcript-edit/) `POST /projects/{project_id}/generations/{generation_id}/edits`

### Separated tracks

- [Get the saved mix](https://diffio.ai/docs/api-reference/get-generation-mix/) `GET /projects/{project_id}/generations/{generation_id}/mix`
- [Save the mix](https://diffio.ai/docs/api-reference/save-generation-mix/) `PUT /projects/{project_id}/generations/{generation_id}/mix`
- [Create an export](https://diffio.ai/docs/api-reference/create-generation-export/) `POST /projects/{project_id}/generations/{generation_id}/exports`
- [Get an export](https://diffio.ai/docs/api-reference/get-generation-export/) `GET /projects/{project_id}/generations/{generation_id}/exports/{export_id}`

### Transcripts

- [Get a generation's transcript](https://diffio.ai/docs/api-reference/get-transcript/) `GET /projects/{project_id}/generations/{generation_id}/transcript`
- [Get the transcript draft](https://diffio.ai/docs/api-reference/get-transcript-draft/) `GET /projects/{project_id}/generations/{generation_id}/transcript/draft`
- [Save the transcript draft](https://diffio.ai/docs/api-reference/save-transcript-draft/) `PUT /projects/{project_id}/generations/{generation_id}/transcript/draft`
- [Delete the transcript draft](https://diffio.ai/docs/api-reference/delete-transcript-draft/) `DELETE /projects/{project_id}/generations/{generation_id}/transcript/draft`
- [Ask the edit assistant](https://diffio.ai/docs/api-reference/create-transcript-assistant-turn/) `POST /projects/{project_id}/generations/{generation_id}/transcript/assistant/turns`
- [Get an edit assistant turn](https://diffio.ai/docs/api-reference/get-transcript-assistant-turn/) `GET /projects/{project_id}/generations/{generation_id}/transcript/assistant/turns/{turn_id}`
- [Send assistant feedback](https://diffio.ai/docs/api-reference/create-transcript-assistant-feedback/) `POST /projects/{project_id}/generations/{generation_id}/transcript/assistant/feedback`

### Shares

- [Publish a project's share](https://diffio.ai/docs/api-reference/publish-project-share/) `PUT /projects/{project_id}/share`
- [Get a project's share](https://diffio.ai/docs/api-reference/get-project-share/) `GET /projects/{project_id}/share`
- [Revoke a project's share](https://diffio.ai/docs/api-reference/revoke-project-share/) `DELETE /projects/{project_id}/share`
- [Get a share](https://diffio.ai/docs/api-reference/get-share/) `GET /shares/{share_id}`

### Usage

- [Get usage](https://diffio.ai/docs/api-reference/usage-summary/) `GET /usage`

### Webhooks

- [Open the webhook portal](https://diffio.ai/docs/api-reference/open-webhook-portal/) `POST /webhooks/portal`
