# Extend Model

This operation costs **20 credits.**

#### Endpoint

```
POST /api/models/{id}/extend
```

#### Parameters

<table><thead><tr><th width="224">Parameter</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>Yes</td><td>The unique identifier of the model to be extended.</td></tr></tbody></table>

#### Request Example

```bash
curl -X POST "https://api.deepmode.ai/api/models/f7e5d1c3a2f91e3d5c6b8/extend" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_API_KEY" 
```

#### Response

Upon successful extension, the API returns the following response:

```json
{
  "updated_expire_at": "2024-05-01T12:00:00Z"
}

```


---

# 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://deepmode.gitbook.io/docs/api-endpoints/handling-models/extend-model.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.
