Skip to content

Commit be0f323

Browse files
authored
docs: create predictions for official models (#312)
1 parent 4cba156 commit be0f323

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,9 @@ const response = await replicate.predictions.create(options);
615615

616616
| name | type | description |
617617
| ------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
618-
| `options.version` | string | **Required**. The model version |
619618
| `options.input` | object | **Required**. An object with the model's inputs |
619+
| `options.model` | string | The name of the model, e.g. `black-forest-labs/flux-schnell`. This is required if you're running an [official model](https://replicate.com/explore#official-models). |
620+
| `options.version` | string | The 64-character [model version id](https://replicate.com/docs/topics/models/versions), e.g. `80537f9eead1a5bfa72d5ac6ea6414379be41d4d4f6679fd776e9535d1eb58bb`. This is required if you're not specifying a `model`. |
620621
| `options.stream` | boolean | Requests a URL for streaming output output |
621622
| `options.webhook` | string | An HTTPS URL for receiving a webhook when the prediction has new output |
622623
| `options.webhook_events_filter` | string[] | You can change which events trigger webhook requests by specifying webhook events (`start` \| `output` \| `logs` \| `completed`) |

0 commit comments

Comments
 (0)