Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

PAI Generator

Access Pending AI's high-throughput Molecule Generator models

Pending AI's Molecule Generator capability is designed to yield high-throughput novel and diverse molecule sampling ideal for expanding into untouched chemical spaces rapidly. The service provides a simple integration for dedicated AI inference with one of Pending AI's innovative generative models.

See the capability page for more information:

Generative AI

Workflow Summary

Access to Pending AI's Molecule Generator models simplifies the workflow in drug discovery pipelines for branching into different chemical spaces for targeted or broad molecular distributions. Request a sample of up to 500 molecules from a generative model when specifying an id, or create a sample batch of up to 100,000 molecules to build a large compound library in one request.

  • POST /samples generates up to 500 molecules and waits for them. Send the Prefer: respond-async header to get the sample back at once with status pending (202), then poll GET /samples/{sample_id} until it is completed or failed.

  • POST /sample-batches takes up to 100,000 molecules and returns at once. The batch is split into chunks of up to 500 molecules that are generated in the background. Poll GET /sample-batches/{batch_id} until its status is completed or failed, then page through GET /sample-batches/{batch_id}/samples to collect the molecules.

See the available Guides for more implementation possibilities when integrating with existing drug discovery pipelines.


Frequently Asked Questions

Q: How do I decide which model to use?

A: Refer to the capability page for a detailed breakdown of each model's strengths. Consider the optimal model based on the primary metric for the intended purpose. Otherwise, any model is generally favourable for sampling drug-like novel and diverse molecules.

Q: How many molecules can I generate in one request?

A: A sample (POST /samples) holds at most 500 molecules. A sample batch (POST /sample-batches) holds up to 100,000, generated in chunks of up to 500. There is no limit to how many samples or batches you can create, other than your team's plan allowance.

Q: Why is my sample still pending?

A: A sample is pending until a model takes it, then processing while molecules are generated, then completed or failed. A model that isn't running is started by the next sample, which takes about 10-15 seconds, so a sample that stays pending for a few seconds is usually waiting for its model to start.

Q: What does each model status mean?

A: GET /models/{model_id}/status returns one of:

  • online: the model is running and samples at once.

  • idle: no instance of the model is running. The next sample starts one, which takes about 10-15 seconds.

  • offline: the model is offline and not reachable.

  • timeout: the request timed out while waiting for the model.

  • error: an error occurred while trying to reach the model.

Q: Why was my request refused with 402?

A: Generated molecules count against your team's plan. A POST /samples or POST /sample-batches request is refused whole with 402 Payment Required if your team has no plan, or can't generate that many molecules this billing period. When the allowance is the reason, the message says how many molecules can still be generated. See Accounts, teams and billing for how allowances and overage work.

Q: Can there be duplicate SMILES returned when sampling?

A: Within a given sample request no duplicates are returned. It should be considered that when generating molecules from the same model the chemical space captured by the AI embedding architecture is not infinite and there is always a possibility (although highly unlikely).

Last updated

Was this helpful?