# Task: migrate an app to the Lithovas API
Use the NEW-API gateway at https://www.seedance.ch. Create a key under https://www.seedance.ch/open/api-keys/ and keep it in the server-side LITHOVAS_API_KEY environment variable. Never embed or log the key in client code.
Verify authentication and discover the models this key can use:
curl --fail-with-body https://api.seedance.ch/v1/models \
-H "Authorization: Bearer ${LITHOVAS_API_KEY}"
Choose the model and operation in https://www.seedance.ch/open/explore/. Confirm the request schema and supported parameters for that operation before replacing the old provider call. Send API requests from the server with Authorization: Bearer <api-key> and use the model's documented endpoint. Keep task IDs and poll only when the operation is asynchronous. Handle authentication, quota and rate-limit errors separately; never blindly retry a submission that may already have created a task.
Verify with the model list first; run a single minimal generation only after the user approves the cost. Report the tested route, model and result.