// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-task.asciidoc:216

[source, python]
----
resp = client.inference.put(
    task_type="text_embedding",
    inference_id="mistral_embeddings",
    inference_config={
        "service": "mistral",
        "service_settings": {
            "api_key": "<api_key>",
            "model": "<model_id>"
        }
    },
)
print(resp)
----
