EYE AI
Search
⌃K
🧿

Edits

Given a prompt and an instruction, the model will return an edited version of the prompt.

Create edit

Creates a new edit for the provided input, instruction, and parameters
Example request
1
curl https://api.eye-ai.com/v1/edits \
2
-H 'Content-Type: application/json' \
3
-H 'Authorization: Bearer YOUR_API_KEY' \
4
-d '{
5
"model": "text-davinci-edit-001",
6
"input": "What day of the wek is it?",
7
"instruction": "Fix the spelling mistakes"
8
}'
Parameters
1
{
2
"model": "text-davinci-edit-001",
3
"input": "What day of the wek is it?",
4
"instruction": "Fix the spelling mistakes",
5
}
Response
1
{
2
"object": "edit",
3
"created": 1589478378,
4
"choices": [
5
{
6
"text": "What day of the week is it?",
7
"index": 0,
8
}
9
],
10
"usage": {
11
"prompt_tokens": 25,
12
"completion_tokens": 32,
13
"total_tokens": 57
14
}
15
}
​