> For the complete documentation index, see [llms.txt](https://nerdguyahmad.gitbook.io/randomstuff/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nerdguyahmad.gitbook.io/randomstuff/brief/faq.md).

# FAQ

### Why am I getting [`AuthError`](/randomstuff/errors/autherror.md)?

You need API key to get access to API and use the wrapper. Get one from [here](https://api-info.pgamerx.com/register). If you have the API key in your code but it is showing this error, Make sure API key is exact as the one you got.

### How plans work?

See the [official doc](https://docs.pgamerx.com) on this.

### Why Joke is an object, and why not string or dictionary?

To ease the user, Objects are relatively easy to understand and use then a raw dictionary. See [`Joke`](/randomstuff/data-classes/joke.md) and [Joke 101](/randomstuff/brief/joke-101.md) page for more info.

### What is [`AsyncClient`](/randomstuff/clients/asyncclient.md)?

An async version of the [`Client`](/randomstuff/clients/client.md)

### What is async and sync?

Async is basically used when concurrency is your focus. Sync is also known as blocking which means only one function will run at one point. You'll have to wait for a function to finish before you continue to next one whereas in async, they work concurrently. [Read more](https://www.outsystems.com/blog/posts/asynchronous-vs-synchronous-programming/#:~:text=In%20synchronous%20operations%20tasks%20are,before%20the%20previous%20one%20finishes.).

### Why are version 3 and version 4, AI response parameters different?

Because that is how it is provided or suggested by API.

###
