# Response Type

> Choose how you receive the output — hosted URL, Base64 string, or binary data

- **URL**: https://orshot.com/docs/definitions/response-type

---

The `responseType` (or `response.type` in the Studio API) controls how Orshot delivers the rendered output back to you.

## Available Types

| Type     | Returns                  | Best For                                    |
| :------- | :----------------------- | :------------------------------------------ |
| `url`    | A hosted URL to the file | Web apps, sharing links, storing references |
| `base64` | Base64-encoded string    | Embedding in emails, inline display         |
| `binary` | Raw file binary data     | Direct file downloads, saving to disk       |

## Example```javascript
const response = await orshot.renderFromTemplate({
  templateId: "your-template-id",
  responseType: "url", // [!code highlight]
  responseFormat: "png",
  modifications: {
    title: "Hello World",
  },
});

// responseType: "url" returns:
// { content: "https://storage.orshot.com/renders/abc123.png" }

// responseType: "base64" returns:
// { content: "data:image/png;base64,iVBORw0KGgo..." }

// responseType: "binary" returns the raw file data
```