https://us-south.ml.cloud.ibm.com
for US South region.username/password
or ZenApiKey
method:
ZenApiKey
authentication:
https://cpd-watsonx.apps.example.com
.echo "<username>:<apikey>" | base64
, replacing <username>
with your CPD username and <apikey>
with the API Key you just created.username/password
authentication:
https://cpd-watsonx.apps.example.com
.username:password
as format.apiVersion
is optional and defaults to the latest version.
If you are using a custom deployment endpoint, set deploymentID
to the model’s deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the </>
tab on the right, which will display the endpoint’s URL containing the deployment ID.
granite
or llama3
, and to set the contextLength
to the model’s context window size.
You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences: