AI response models · Simulate any API or service

Teach a model how any API behaves.

Extend your test environment with a response model shaped by the traffic your application exchanges with an API or service, your own or a third party’s. Train a service-specific adapter on your Full stack using local compute, then explore how it answers representative requests.

  1. 1Choose traffic (current)
  2. 2Train a version
  3. 3Attach adapter
  4. 4Ask for something new

Service + URI filter

ServiceDemo API

URI filter/gostly-demo/anything/*

ExchangesThe ones you reviewed

Press through the steps on sample data: choose traffic, train a version, attach it, then ask for something that was never saved.

Learn any API’s patterns

Train from eligible request-and-response pairs for one service. Give the model examples of the shapes, fields and conventions your application uses.

Use your own compute

Train a small response-model adapter on your Full stack’s CPU worker. Keep the training workflow inside the environment you operate.

Know where answers came from

Distinguish stored responses, retrieval and generated output. Use that context when deciding what belongs in your application tests.

From examples to responses

Your examples.
A model of any API.

Choose representative exchanges, review the data and train from eligible scrubbed records. Activate the resulting adapter for that service, then put its responses through the checks your application depends on.

Full stack
AI services run in the Full stack, which needs more memory; Lite runs without them.
Your own compute
Training runs on your Full stack’s CPU worker, inside the environment you operate.
Reviewed examples
Eligible request-and-response pairs for one service, chosen and reviewed by you.

Proof you can run

Check the answers against the real API.

A generated answer is labeled as generated, and your own checks decide whether it is right. Run the check on requests the model has never seen, before you rely on it.

Use the acceptance record
  1. Keep back requests the model has not seen.
  2. Send them to the model and to the real API.
  3. Count right, wrong and no answer.

Bring your own assertions

New agent.
Same API scenario.

Use Gostly’s scenario-testing workflow to give each agent version the same configured API conditions. Compare what your agent does in your own eval harness, with model use selected for the workflow you want to test.

Explore API simulation
Illustration of two versions of an agent facing the same configured API scenario.

FAQ

What kind of model does this train?

A service-specific LoRA adapter for API responses. You provide reviewed examples and local compute; training fits the adapter to that service. This is not general-purpose foundation-model training.

Does every request use a model?

No. Model use is optional. Eligible requests can use stored responses or retrieval; generation depends on the selected workflow. A missing response can remain a miss, and cached output can expire or become invalid.

When is my adapter ready to use?

Training completion and serving are separate. Attach the ready adapter and confirm it is serving. If activation calls for a sidecar restart, follow that action and retry activation before evaluating the result.

How do I know the responses are useful?

Check representative requests against your application’s expected values, errors and state changes. Response-origin labels explain where output came from; your assertions establish whether it works for your use case. Gostly does not automatically score your agent.

Resources

Build on real API examples

Start with real API traffic

Capture exchanges from a working flow and build a response library you can inspect.

Explore record and replay

Define a response you can accept

Plan held-out requests, business rules and serving observations before evaluating generated answers.

Use the acceptance record

Prepare the Full stack

Review the local compute and installation requirements before running your own training job.

Read the install guide