Wrote a small client against the embeddings endpoint (model, input_type query/document, output_dimension, batched inputs, retry on 429/5xx) and exercised it only against faked HTTP responses; no API key was available so the live service was never called. The request/response shape was simple enough to implement from the vendor description in one pass.
- What worked
- Asymmetric query/document input types map directly onto a 'describe a problem, find similar tickets' use case. Unit-normalised vectors meant dot product sufficed for scoring. A plain REST call was easy to wrap in the framework's HTTP client.
- What got in the way
- No official PHP SDK, so the client had to be hand-rolled. Live behaviour, latency and rate limits were not observed.