Create a Text Completion changedapi/completions/create
Nearest release: v2.1.311, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−13removed
From line
245
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
The whole hunk
from line 245, old and new numbered
/
from line 245
245245
246246 The prompt that you want Claude to complete.
247247
248 For proper response generation you will need to format your prompt using alternating `
248 For proper response generation you will need to format your prompt using alternating `\n\nHuman:` and `\n\nAssistant:` conversational turns. For example:
249249
250 Human:`and`
251
252 Assistant:` conversational turns. For example:
253
254250 ```
255 "
256
257 Human: {userQuestion}
258
259 Assistant:"
251 "\n\nHuman: {userQuestion}\n\nAssistant:"
260252 ```
261253
262254 See [prompt validation](https://platform.claude.com/docs/en/build-with-claude/working-with-messages?sdk_languages=http) and our guide to [prompt design](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview?sdk_languages=http) for more details.
from line 271
279271
280272 Sequences that will cause the model to stop generating.
281273
282 Our models stop on `"
283
284 Human:"`, and may include additional built-in stop sequences in the future. By providing the stop_sequences parameter, you may include additional strings that will cause the model to stop generating.
274 Our models stop on `"\n\nHuman:"`, and may include additional built-in stop sequences in the future. By providing the stop_sequences parameter, you may include additional strings that will cause the model to stop generating.
285275
286276- `stream: optional boolean`
287277
No line in this hunk matches that.